commit 0fed73d83a968e4f71e231a254d3fc8d59da7e0b
parent 3a437b402a9e310a69ea418281ee7aa8c3ffc075
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Mon, 9 Jun 2008 12:40:04 +1200
read marks when vim loads, not when a nerd tree loads
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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 <SID>SaveScreenState()"
+"cache marks when vim loads
+autocmd VimEnter * call <SID>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