Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Disallow insert mode in the NERDTree

  • Loading branch information...
commit 3bb112d916a3e78f2e6528b869cdad1f7d826114 1 parent ffbc5d0
@wycats authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  plugin/NERD_tree.vim
View
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.