2010-12-22 01:27:34 +11:00
|
|
|
set guioptions-=T " hide toolbar
|
|
|
|
set guioptions+=Rr " Turn on scroll bars
|
2010-12-06 13:06:09 +11:00
|
|
|
|
2010-11-30 00:18:09 +11:00
|
|
|
if has("gui_macvim")
|
2011-02-18 12:45:40 +11:00
|
|
|
set transparency=7
|
2010-12-06 13:06:09 +11:00
|
|
|
|
|
|
|
" Fullscreen takes up entire screen
|
|
|
|
set fuoptions=maxhorz,maxvert
|
|
|
|
|
2010-12-22 00:36:30 +11:00
|
|
|
"Mac OS X style command line editing
|
2010-12-06 13:06:09 +11:00
|
|
|
cnoremap <A-Backspace> <C-W>
|
|
|
|
cnoremap <D-Backspace> <C-U>
|
|
|
|
|
2010-12-22 00:14:07 +11:00
|
|
|
" Command-/ to toggle comments
|
2010-12-22 00:36:30 +11:00
|
|
|
map <D-/> <plug>NERDCommenterToggle
|
2011-02-08 22:24:35 +11:00
|
|
|
imap <D-/> <Esc><plug>NERDCommenterToggle i
|
2010-12-22 01:27:34 +11:00
|
|
|
end
|
2011-02-09 00:42:20 +11:00
|
|
|
|
|
|
|
" Source vimrc after saving it
|
|
|
|
autocmd! BufWritePost .gvimrc,gvimrc source $MYGVIMRC
|
|
|
|
autocmd! BufWritePost .vimrc,vimrc source $MYVIMRC | source $MYGVIMRC | NERDTreeToggle | NERDTreeToggle
|
|
|
|
|