"Summary" Vim plugin NERD Tree

Source: Internet
Author: User

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:

    1. Go to .vim/bundle Catalog
    2. Performgit clone git://github.com/scrooloose/nerdtree.git
    3. After the download is complete, a Nerdtree folder is created under the bundle, and all related plugins are in the folder
    4. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.