" This is a modified example gvimrc
set lines=50
" MacVim has sane defaults for those:
if !has("gui_macvim")
set guifont=Monaco:h10
" set guifont=Panic\ Sans:h11.00
colorscheme osxaqua
endif
set guioptions-=L
set guioptions-=T
" make window twice as wide for diffs
func! DiffSetup()
let &columns = 2* &columns + 1
wincmd =
endfun
if &diff
autocmd VimEnter * call DiffSetup()
normal gg
endif
"set ch=2 " Make command line two lines high
set mousehide " Hide the mouse when typing text
" Only do this for Vim version 5.0 and later.
if version >= 500
" I like highlighting strings inside C comments
let c_comment_strings=1
" Switch on syntax highlighting if it wasn't on yet.
if !exists("syntax_on")
syntax on
endif
" Switch on search pattern highlighting.
set hlsearch
endif
" let focuslosttransparency=83
" if version>=602 && has("macunix") && has("gui_running")
" try
" let stored_transp=&transparency
" au! FocusLost * let stored_transp=&transparency | let &transparency=focuslosttransparency
" au! FocusGained * let &transparency=stored_transp
" endtry
" endif
" Project plugin
let g:proj_window_width = 35
func! Comrade()
Project /Volumes/compiler/project.proj
let &columns = &columns + g:proj_window_width + 1
set lines=75
cs add cscope.out
endfunc
nmap <Leader>H :call Comrade()<cr>