commit 23e79de2c2c9a6cd76b6ebf7cb82ded73dc49702
parent 4accc8a79c9b453744819b68b3e6509367ca1200
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Fri, 23 Jan 2009 21:27:53 +1300
make the hijacknetrw functionality work when vim starts up
now we can go vim <some dir> and it loads up a nerd tree instead of
a netrw
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -167,7 +167,7 @@ augroup END
if g:NERDTreeHijackNetrw
augroup NERDTreeHijackNetrw
autocmd VimEnter * silent! autocmd! FileExplorer
- au BufEnter * call s:checkForBrowse(expand("<amatch>"))
+ au BufEnter,VimEnter * call s:checkForBrowse(expand("<amatch>"))
augroup END
endif