NERD tree is a file directory management plugin in Vim.
1.
Https://github.com/scrooloose/nerdtree
2. Function description
Nerdtree is one of the most commonly used plug-ins of vim, it can display the directory and file structure in vim runtime, similar to the file browser on the left side of TextMate, but it is more convenient to operate, you can quickly browse the files without leaving the keyboard, and switch between files and folders. Effects such as
3. Installation process
If you have bundles, then:
- Go to
.vim/bundle
Catalog
- Perform
git clone git://github.com/scrooloose/nerdtree.git
- After the download is complete, a Nerdtree folder is created under the bundle, and all related plugins are in the folder
- Run in vim
:Helptags
to generate Nerdtree online Help tags
If you don't have bundles, then:
Download, then unzip, merge the extracted plugin and Doc folders with the same name folder under the ~/vim/vim73/directory
Alternatively: Place the Nerdtree.vim file under the. vim/puglin/
Please Test yourself
After that, you can run it in vim: Nerdtree to start the plugin, but it is recommended to set it (mapped to a shortcut key). The specific methods are:
For example, we will open the Nerdtree shortcut key set to F6. Then in ~/.VIMRC, add a line like this
Map <F6>:nerdtreetoggle<cr>
You can then use F6 to open the file directory Manager directly in Vim.
4. How to use
Nerdtree provides a rich keyboard operation to browse and open files, briefly introducing some common shortcut keys:
和编辑文件一样,通过h j k l移动光标定位o 打开关闭文件或者目录,如果是文件的话,光标出现在打开的文件中go 效果同上,不过光标保持在文件目录里,类似预览文件内容的功能i和s可以水平分割或纵向分割窗口打开文件,前面加g类似go的功能t 在标签页中打开T 在后台标签页中打开p 到上层目录P 到根目录K 到同目录第一个节点J 到同目录最后一个节点m 显示文件系统菜单(添加、删除、移动操作)? 帮助q 关闭
Want to know more ways to operate, can pass? See the detailed help information.
Thanks to the bloggers of the following blog, thank you for sharing:
Http://www.cnblogs.com/chijianqiang/archive/2012/11/06/vim-3.html
Http://www.cnblogs.com/feichexia/archive/2012/11/07/Vim_NerdTree.html
"Summary" Vim plugin NERD Tree