commit 6b4dca7361276ac0ff8744326e1de0cf1ec5c529 parent 7ac998fafc7eb544b70f6e7d6a278831dc403778 Author: Martin Grenfell <martin_grenfell@msn.com> Date: Wed, 17 Dec 2008 20:24:08 +1300 put the base nerd tree autocmds in an augroup Diffstat:
| M | plugin/NERD_tree.vim | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim @@ -149,10 +149,12 @@ command! -n=0 NERDTreeClose :call s:closeTreeIfOpen() command! -n=1 -complete=customlist,s:completeBookmarks NERDTreeFromBookmark call s:initNerdTree('<args>') " SECTION: Auto commands {{{1 "============================================================ -"Save the cursor position whenever we close the nerd tree -exec "autocmd BufWinLeave *". s:NERDTreeBufName ." call <SID>saveScreenState()" -"cache bookmarks when vim loads -autocmd VimEnter * call s:Bookmark.CacheBookmarks(0) +augroup NERDTree + "Save the cursor position whenever we close the nerd tree + exec "autocmd BufWinLeave *". s:NERDTreeBufName ." call <SID>saveScreenState()" + "cache bookmarks when vim loads + autocmd VimEnter * call s:Bookmark.CacheBookmarks(0) +augroup END augroup NERDTreeNetrwHijack
