cocopon / vaffle.vim

:file_folder: Lightweight, window-based file manager for Vim
MIT License
284 stars 20 forks source link

Vaffle ex command opens NerdTree #5

Closed timsn closed 6 years ago

timsn commented 7 years ago

It seems that vaffle interferes with NerdTree. I installed both plugins using vim-plug and tried to open vaffle with ex command :Vaffle and instead NerdTree opens full screen (like vaffle normally does).

If I deactivate the NerdTree plugin vaffle works like expected.

cocopon commented 7 years ago

I didn't expect using both Vaffle and NERDTree... If you really want to use them at the same time, would you tell me the situation?

Vaffle detects opening a directory and replace the buffer. Maybe NERDTree interferes this mechanism.

markwu commented 7 years ago

Sometimes, I need to use nerdtree to traverse my project structure, the project drawer style is more clear for this purpose. That's why I keep nerdtree there.

Of course I can use netrw for this porpose, but I prefer nerdtree, and less bugs.

BTW, I like vaffle, it fills the gap of filebeagle and dirvish, and also more lightweighted than vimfiler. Well done.

markwu commented 6 years ago

Okay, I found a solution for this, just add the following config to your vimrc

let NERDTreeHijackNetrw = 0

Then, everything goes back to normal.

markwu commented 6 years ago

Maybe you can consider add this as a FAQ to help file. This issue can be closed.