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
thanks @moeabdol
Comments
Post a Comment