mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05:00
put the base nerd tree autocmds in an augroup
This commit is contained in:
@@ -149,10 +149,12 @@ command! -n=0 NERDTreeClose :call s:closeTreeIfOpen()
|
|||||||
command! -n=1 -complete=customlist,s:completeBookmarks NERDTreeFromBookmark call s:initNerdTree('<args>')
|
command! -n=1 -complete=customlist,s:completeBookmarks NERDTreeFromBookmark call s:initNerdTree('<args>')
|
||||||
" SECTION: Auto commands {{{1
|
" SECTION: Auto commands {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
"Save the cursor position whenever we close the nerd tree
|
augroup NERDTree
|
||||||
exec "autocmd BufWinLeave *". s:NERDTreeBufName ." call <SID>saveScreenState()"
|
"Save the cursor position whenever we close the nerd tree
|
||||||
"cache bookmarks when vim loads
|
exec "autocmd BufWinLeave *". s:NERDTreeBufName ." call <SID>saveScreenState()"
|
||||||
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)
|
"cache bookmarks when vim loads
|
||||||
|
autocmd VimEnter * call s:Bookmark.CacheBookmarks(0)
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
|
||||||
augroup NERDTreeNetrwHijack
|
augroup NERDTreeNetrwHijack
|
||||||
|
|||||||
Reference in New Issue
Block a user