nerdtree_choosewin-plugin


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2018-06-05
使用用户:  3
Github星:  8
插件作者:  Thore Weilbier

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'weilbith/nerdtree-choosewin-plugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'weilbith/nerdtree-choosewin-plugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'weilbith/nerdtree-choosewin-plugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/weilbith/nerdtree_choosewin-plugin

Ⅳ. 文档说明

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.

添加新评论