tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.23k stars 87 forks source link

VinegarUp brings up nerdtree when nerdtree exists? #125

Closed huangzonghao closed 3 years ago

huangzonghao commented 3 years ago

I love netrw's swiftness and in-place file opening, while at the same time I want to enjoy the robust tree view of nerdtree (the tree view of netrw is too buggy on my machine). So I just added nerdtree to my vim/bundle (I am using pathogen - thanks Tim!). But to my surprise VinegarUp immediately starts to brings up nerdtree instance whenever called, instead of netrw -- I even haven't reloaded my vim yet! And Ctrl-^ no longer works -- this may not be a surprise, since I am effectively calling it inside nerdtree. So is expected behavior? And how can I set VinegarUp back to use netrw?

tpope commented 3 years ago
let g:NERDTreeHijackNetrw = 0