Add the directory browsing function to VIM together with Xin Xing

Source: Internet
Author: User

As Vim is used more and more, we feel the power of VIM. For example, we need directory browsing recently. So we searched for related things and found a lot of knowledge on the Internet, however, it is complicated, so you just need to spend some time to sort it out.

The first step is to download a plug-in: http://www.vim.org/scripts/script.php? You can also click here to download script_id = 1658. Because this is a foreign website, if you feel it is slow, you can consider downloading it on csdn, of course, without points: http://download.csdn.net/detail/xinguimeng/7732899, you can also click here to download

Step 2: Decompress the package. We can decompress the downloaded file in Four folders: Doc, nerdtree_plugin, plugin, and syntax. Each folder contains one file, in this case, we need to find the vim installation directory. The installed version is 7.4. Therefore, under the vim74 directory, copy the files in the doc and plugin folders to the directory of the corresponding folder in vim74, that is, copy the doc to vim74/doc, and copy the contents in plugin to vim74/plugin.

The third step is to set up. In fact, this time can be used. For convenience, I have customized two key mappings. Let's add these two lines in _ vimrc:

"Set nerdtreemap <F3>: nerdtreemirror <CR> Map <F3>: nerdtreetoggle <CR>
Step 4: when we open vim and press F3, the result is as follows:



So far, the installation of this plug-in is complete. Do you like it?

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.