put the base nerd tree autocmds in an augroup

This commit is contained in:
Martin Grenfell
2008-12-17 20:24:08 +13:00
parent 7ac998fafc
commit 6b4dca7361

View File

@@ -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