diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 25e6b22..bc6eb4d 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -145,6 +145,8 @@ command! -n=0 NERDTreeClose :call s:CloseTreeIfOpen() "============================================================ "Save the cursor position whenever we close the nerd tree exec "autocmd BufWinLeave *". s:NERDTreeWinName ."* :call SaveScreenState()" +"cache marks when vim loads +autocmd VimEnter * call ReadMarks() "SECTION: Classes {{{1 "============================================================ @@ -1445,7 +1447,6 @@ function! s:InitNerdTree(dir) call t:NERDTreeRoot.Open() call s:CreateTreeWin() - call s:ReadMarks() call s:RenderView() endfunction