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.
This commit is contained in:
parent
9b5851c36c
commit
12f692f436
@ -66,7 +66,6 @@ call s:initVariable("g:NERDTreeShowFiles", 1)
|
|||||||
call s:initVariable("g:NERDTreeShowHidden", 0)
|
call s:initVariable("g:NERDTreeShowHidden", 0)
|
||||||
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
||||||
call s:initVariable("g:NERDTreeSortDirs", 1)
|
call s:initVariable("g:NERDTreeSortDirs", 1)
|
||||||
call s:initVariable("g:NERDTreeStopInsert", 0)
|
|
||||||
call s:initVariable("g:NERDTreeDirArrows", 0)
|
call s:initVariable("g:NERDTreeDirArrows", 0)
|
||||||
|
|
||||||
if !exists("g:NERDTreeSortOrder")
|
if !exists("g:NERDTreeSortOrder")
|
||||||
@ -171,10 +170,8 @@ augroup NERDTree
|
|||||||
"Save the cursor position whenever we close the nerd tree
|
"Save the cursor position whenever we close the nerd tree
|
||||||
exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call <SID>saveScreenState()"
|
exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call <SID>saveScreenState()"
|
||||||
|
|
||||||
if g:NERDTreeStopInsert
|
"disallow insert mode in the NERDTree
|
||||||
"disallow insert mode in the NERDTree
|
exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
|
||||||
exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
|
|
||||||
endif
|
|
||||||
|
|
||||||
"cache bookmarks when vim loads
|
"cache bookmarks when vim loads
|
||||||
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)
|
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user