Skip to content

Commit 3bb112d

Browse files
committed
Disallow insert mode in the NERDTree
1 parent ffbc5d0 commit 3bb112d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/NERD_tree.vim

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ command! -n=0 -bar NERDTreeFind call s:findAndRevealPath()
167167
augroup NERDTree
168168
"Save the cursor position whenever we close the nerd tree
169169
exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call <SID>saveScreenState()"
170+
171+
"disallow insert mode in the NERDTree
172+
exec "autocmd BufEnter ". s:NERDTreeBufName ."* stopinsert"
170173
"cache bookmarks when vim loads
171174
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)
172175

0 commit comments

Comments
 (0)