Permalink
Browse files

(new) Mapping <F2> to :NERDTreeToggle in vim

  • Loading branch information...
ELLIOTTCABLE committed Dec 24, 2011
1 parent a816325 commit 9b4462447f998af7d5835a3713d0acf5120cef70
Showing with 4 additions and 0 deletions.
  1. +4 −0 Dotfiles/vimrc
View
@@ -41,6 +41,10 @@ nnoremap ` '
" See `:help Y`
map Y y$
+noremap <F2> :NERDTreeToggle<Return>
+inoremap <F2> <C-o>:NERDTreeToggle<Return>
+vnoremap <F2> <Esc>:NERDTreeToggle<Return>
+
autocmd BufLeave,FocusLost * silent! wall

0 comments on commit 9b44624

Please sign in to comment.