diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index dc8ffe1..6701bb9 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -161,7 +161,7 @@ command! -n=0 -bar NERDTreeMirror call s:initNerdTreeMirror() "============================================================ augroup NERDTree "Save the cursor position whenever we close the nerd tree - exec "autocmd BufWinLeave *". s:NERDTreeBufName ." call saveScreenState()" + exec "autocmd BufWinLeave ". s:NERDTreeBufName ."* call saveScreenState()" "cache bookmarks when vim loads autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)