set guioptions-=T " hide toolbar set guioptions+=Rr " Turn on scroll bars if has("gui_macvim") " macmenu Window.Toggle\ Full\ Screen\ Mode key= set transparency=12 " Fullscreen takes up entire screen set fuoptions=maxhorz,maxvert "Mac OS X style command line editing cnoremap cnoremap " Command-/ to toggle comments map NERDCommenterToggle imap NERDCommenterToggle i " Command-T (a la Textmate) macmenu &File.New\ Tab key= map :CommandT imap :CommandT end " Source vimrc after saving it autocmd! BufWritePost .gvimrc,gvimrc source $MYGVIMRC autocmd! BufWritePost .vimrc,vimrc source $MYVIMRC | source $MYGVIMRC | NERDTreeToggle | NERDTreeToggle