https://github.com/mortonfox/nerdtree-reuse-currenttab
NERDTree customization that stops it from reusing a window from another tab when opening a file node
https://github.com/mortonfox/nerdtree-reuse-currenttab
nerdtree vim
Last synced: about 1 year ago
JSON representation
NERDTree customization that stops it from reusing a window from another tab when opening a file node
- Host: GitHub
- URL: https://github.com/mortonfox/nerdtree-reuse-currenttab
- Owner: mortonfox
- Created: 2016-02-26T05:09:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T18:02:37.000Z (over 8 years ago)
- Last Synced: 2025-02-14T01:19:03.608Z (over 1 year ago)
- Topics: nerdtree, vim
- Language: Vim script
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nerdtree-reuse-currenttab
## Introduction
When you open a file node in [NERDTree](https://github.com/scrooloose/nerdtree)
and if that file is already open in a buffer in another tab, NERDTree switches
to that tab to activate the file. Since I find this tab-switching behavior
rather jarring, I use this plugin to alter NERDTree's file open behavior so
that it will open the file in the current tab instead of switching tabs.
## Installation
### Pathogen
Use the following commands:
cd ~/.vim/bundle
git clone https://github.com/mortonfox/nerdtree-reuse-currenttab.git
### Vundle
Add the following to your vimrc:
Plugin 'mortonfox/nerdtree-reuse-currenttab'
Install with ```:PluginInstall```.
### Manual Installation
Copy the ```reuse_currenttab.vim``` file to ```~/.vim/nerdtree_plugin/``` (*nix)
or ```~/vimfiles/nerdtree_plugin``` (Windows).