mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
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
This commit is contained in:
@@ -167,7 +167,7 @@ augroup END
|
|||||||
if g:NERDTreeHijackNetrw
|
if g:NERDTreeHijackNetrw
|
||||||
augroup NERDTreeHijackNetrw
|
augroup NERDTreeHijackNetrw
|
||||||
autocmd VimEnter * silent! autocmd! FileExplorer
|
autocmd VimEnter * silent! autocmd! FileExplorer
|
||||||
au BufEnter * call s:checkForBrowse(expand("<amatch>"))
|
au BufEnter,VimEnter * call s:checkForBrowse(expand("<amatch>"))
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user