Skip to content

NERDTree extension which let you choose the window to open the new file.

License

Notifications You must be signed in to change notification settings

weilbith/nerdtree_choosewin-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

license

Choosewin for NERDTree

This plugin for the popular (Neo)Vim plugin NERDTree allows the user to specify the window where to open a new file from inside the NERDTree buffer. This is really handy if you use to have multiple windows open. Per default NERDTree opens the new file in the last focused window before switch to the plugins buffer. Without jumping, this is the next aside window, but also if jumping before to the target window, than to NERDTree and open the file is quite cumbersome. With this extension for NERDTree, on open a new file (without define a split), it asks first for a window to use. Therefore are two options implemented. Either the great Choosewin is installed and loaded or a simple user input is asked for. For the second option the user has to make sure a correct window number is inserted. Using window numbers as indicator in his status line like shown here with airline can be very useful for this case.


Installation

Use any of (Neo)Vims plugin manager (Dein, Vundle, Vim-Plug, Pathogen, ...) or just clone/download the repository and add in manually to your runtimepath.

If you like to use Choosewin for window selection (whats quite more fancy in general), just install it in parallel, this plugin will find it. Careful: if you are using lazy loading for Choosewin like with Dein, this will not work and the fallback case with the user input is used. This is due to the fact that this plugin can't find Choosewin until it gets sourced by its lazy load condition.

About

NERDTree extension which let you choose the window to open the new file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published