Ⅰ. 插件描述
NERDTree plugin to open the selected folder in iTerm.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mortonfox/nerdtree-iterm'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mortonfox/nerdtree-iterm'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mortonfox/nerdtree-iterm'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mortonfox/nerdtree-iterm
Ⅳ. 文档说明
# nerdtree-iterm
Introduction
iterm_menu_item is a NERDTree
plugin that adds a menu item to open the selected folder in
iTerm2. (i.e. open a shell window and cd to that
folder)
Installation
Pathogen
Use the following commands:
cd ~/.vim/bundle
git clone https://github.com/mortonfox/nerdtree-iterm.git
Vundle
Add the following to your vimrc:
Plugin 'mortonfox/nerdtree-iterm'
Install with :PluginInstall.
Manual Installation
Copy iterm_menu_item.vim to ~/.vim/nerdtree_plugin/ (*nix)
or ~/vimfiles/nerdtree_plugin (Windows).
iTerm2 3.x
nerdtree-iterm uses a piece of AppleScript code to open an iTerm session. This
AppleScript code is different for iTerm2 2.x and for iTerm2 3.x.
By default, nerdtree-iterm supports iTerm2 2.x. If you are using iTerm2 3.x (or
an iTerm2 2.9 nightly build), add the following to your vimrc:
let g:nerdtree_iterm_iterm_version = 3
Usage
In the NERDTree window, select the desired folder and then type m
and i to open an iTerm2 session with that folder as the current
- If the selection is on a file, this plugin will open iTerm on the
- folder.