Permalink
Browse files

Disallow insert mode in the NERDTree

  • Loading branch information...
1 parent ffbc5d0 commit 3bb112d916a3e78f2e6528b869cdad1f7d826114 @wycats committed Dec 30, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugin/NERD_tree.vim
@@ -167,6 +167,9 @@ command! -n=0 -bar NERDTreeFind call s:findAndRevealPath()
augroup NERDTree
"Save the cursor position whenever we close the nerd tree
exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call <SID>saveScreenState()"
+
+ "disallow insert mode in the NERDTree
+ exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
"cache bookmarks when vim loads
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)

0 comments on commit 3bb112d

Please sign in to comment.