From 12f692f4369526f408e724fa74a0da527ebe2f2f Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 30 Aug 2011 12:03:49 +0100 Subject: [PATCH] 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. --- plugin/NERD_tree.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 7462735..2f78357 100644 --- 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 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)