New answers tagged

2

NERDTree does a great many things that are... unvim-like... in order to give the IDE “project drawer” experience. I consider most of them hacks, and I’m wary of a plugin which has to hack around default behaviors and usages to do something I don’t need (see Oil and Vinegar). All of that said, one of its hacks is actually quite normal—it’s an unlisted ...


0

My setup, for someone who may want to improve NERDTree behavior. autocmd FileType nerdtree let t:nerdtree_winnr = bufwinnr('%') autocmd BufWinEnter * call PreventBuffersInNERDTree() function! PreventBuffersInNERDTree() if bufname('#') =~ 'NERD_tree' && bufname('%') !~ 'NERD_tree' \ && exists('t:nerdtree_winnr') && bufwinnr('%')...


Top 50 recent answers are included