Commits

John Guidry committed 423433d

Disable Nerdtree and tweak gvim options

  • Participants
  • Parent commits a93b7fe

Comments (0)

Files changed (1)

 
 filetype off
 
+" To disable a plugin, add it's bundle name to the following list
+let g:pathogen_disabled = []
+call add(g:pathogen_disabled, 'nerdtree')
+
 runtime bundle/vim-pathogen/autoload/pathogen.vim
 call pathogen#infect() 
 call pathogen#helptags()
   set directory=.,$VIM\vimfiles\tmp
 endif
 
-set hidden   " Background buffer without writing to disk
-set autoread " Re-read on file change
+set hidden          " Background buffer without writing to disk
+set autoread        " Re-read on file change
+set guioptions=aemc " Autoselect, menu and prefer console questions over popups
 
 " Tab complete up to the point of ambiguity and cycle 
 set wildmode=list:longest
 nnoremap j gj
 nnoremap k gk
 
-map <Leader>f :NERDTreeToggle<CR>
+"" map <Leader>f :NERDTreeToggle<CR>
 nmap <Leader>t :TagbarToggle<CR>
 
 " Open vimrc for fast editing
   "   http://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting
   augroup myvimrc
     au!
-    au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
+    au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC
   augroup END
 
   " Kill nerdtree if it's the last open vim buffer