Vim NERDTree. How to prohibit duplicate files in tabs? -


i use nerdtree setting:

"""" " nerdtree " bundle 'scrooloose/nerdtree' bundle 'jistr/vim-nerdtree-tabs' map <f2> :nerdtreetabstoggle<cr> 

i can open number of tabs same file pressing 't'. example:

|foo.txt|bar.txt|foo.txt|foo.txt| 

how prevent opening of duplicate files? want open existing buffer pressing 't'.

i found solution here https://github.com/scrooloose/nerdtree/issues/439

grab latest version , stick in ~/.vim/nerdtree_plugin/override_tab_mapping.vim

https://gist.github.com/scrooloose/0495cade24f1f2ebb602

thanks @moeabdol


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -