nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 12f692f4369526f408e724fa74a0da527ebe2f2f
parent 9b5851c36cc7db04a2122aece2cd656c18e940a6
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Tue, 30 Aug 2011 12:03:49 +0100

always disallow insert mode

Remove the NERDTreeStopInsert option and always activate the
functionality. If, later on, it becomes apparent that some people might
not want this functionality then we can re-add the option, but in the
meantime, simplify things by removing the option.

Diffstat:
Mplugin/NERD_tree.vim | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -66,7 +66,6 @@ call s:initVariable("g:NERDTreeShowFiles", 1)
 call s:initVariable("g:NERDTreeShowHidden", 0)
 call s:initVariable("g:NERDTreeShowLineNumbers", 0)
 call s:initVariable("g:NERDTreeSortDirs", 1)
-call s:initVariable("g:NERDTreeStopInsert", 0)
 call s:initVariable("g:NERDTreeDirArrows", 0)
 
 if !exists("g:NERDTreeSortOrder")
@@ -171,10 +170,8 @@ augroup NERDTree
     "Save the cursor position whenever we close the nerd tree
     exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call <SID>saveScreenState()"
 
-    if g:NERDTreeStopInsert
-        "disallow insert mode in the NERDTree
-        exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
-    endif
+    "disallow insert mode in the NERDTree
+    exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
 
     "cache bookmarks when vim loads
     autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)