Alternative NERDTree in Vim

I used NERDTree quite happily, but found that this was causing problems when using the YouCompleteMe plugin (which is much more useful). In the meantime, I used Ctrl-P, which is a useful plugin in itself, but I miss the overview of my projects that NERFTree gave me.

Could someone suggest an alternative that does roughly the same thing and hopefully without the problems associated with NERDTree?

+7
vim nerdtree
source share
1 answer

If you use the plugin to open buffers most of the time and use NERDTree only to search for larger directory hierarchies, you may need to learn about the built-in interface of netrw Vim :help netrw .

The options that I found particularly useful were:

 let g:netrw_banner = 0 let g:netrw_keepdir = 0 let g:netrw_liststyle = 1 " or 3 let g:netrw_sort_options = 'i' 

And maybe a way to start it when starting Vim:

1) Open it at startup if no argument is given ( $ vim ):

 autocmd VimEnter * if !argc() | Explore | endif 

2) Open it only if the specified argument is a directory ( $ vim /tmp ):

 autocmd VimEnter * if isdirectory(expand('<afile>')) | Explore | endif 

NTN

+13
source share

All Articles