read marks when vim loads, not when a nerd tree loads
This commit is contained in:
parent
3a437b402a
commit
0fed73d83a
@ -145,6 +145,8 @@ command! -n=0 NERDTreeClose :call s:CloseTreeIfOpen()
|
|||||||
"============================================================
|
"============================================================
|
||||||
"Save the cursor position whenever we close the nerd tree
|
"Save the cursor position whenever we close the nerd tree
|
||||||
exec "autocmd BufWinLeave *". s:NERDTreeWinName ."* :call <SID>SaveScreenState()"
|
exec "autocmd BufWinLeave *". s:NERDTreeWinName ."* :call <SID>SaveScreenState()"
|
||||||
|
"cache marks when vim loads
|
||||||
|
autocmd VimEnter * call <SID>ReadMarks()
|
||||||
|
|
||||||
"SECTION: Classes {{{1
|
"SECTION: Classes {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
@ -1445,7 +1447,6 @@ function! s:InitNerdTree(dir)
|
|||||||
call t:NERDTreeRoot.Open()
|
call t:NERDTreeRoot.Open()
|
||||||
|
|
||||||
call s:CreateTreeWin()
|
call s:CreateTreeWin()
|
||||||
call s:ReadMarks()
|
|
||||||
call s:RenderView()
|
call s:RenderView()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user