Vim configuration on mac

Source: Internet
Author: User

This time, I tried to configure ralis's vim Development Environment on mac. The record is as follows: 1. macVim is available on mac, but not in the root directory of the user. vim folder, so you need to manually mkdir 2. created. after vim, need to build a series of subdirectories www.2cto.com 01drwxr-xr-x 3 zxlong staff 102 6 11 after02drwxr-xr-x 4 zxlong staff 272 6 11 autoload03drwxr-xr-x 2 zxlong staff 4726 6 11 colors04drwxr-xr-x 2 zxlong staff 68 6 11 compiler05drwxrwxr-x 2 zxlong staff 442 6 11 doc06drwxr-xr-x 2 zxlong staff 102 6 11 ftplugin07drwxr-xr-x 2 zxlong staff 68 6 11 indent08drwxr-xr-x 2 zxlong staff 68 6 11 keymap09drwxrwxr-x @ 2 zxlong staff 136 12 28 17 nerdtree_plugin10drwxrwxr-x 2 zxlong staff 782 6 13 plugin11drwxr-xr-x @ 2 zxlong staff 714 7 13 2009 snippets12drwxrwxr-x 2 zxlong staff 340 6 11 syntax
3. download the required plug-ins. Some plug-ins are not just. vim files, but may be a zip or gz compressed package. After unzipping, there will be files such as autoload and syntax. Then map these files. in the vim subdirectory, copy the previous 4. there is also a plug-in configuration file. vimrc also needs to be created manually to copy some of the content set by others (copy it first ...) 5. Tangle .. You can start vim from the terminal or MacVim... Www.2cto.com 6. according. the configuration in vimrc, the shortcut key for enabling NERDTree, F8, start 7. the Bookmark command of NERDTree can record the Project 8. switch the focus value to ctrl + w + h ctr + w + l in the Vim NERDTree started on the terminal and the Tabbar in the editing area on the right. You can also switch the Tabbar to esc + [number] Close the tab: bd press enter to clear the content, and then press enter to close the tab to close all tabs: qa! 9. switch between MacVimNERDTree and the Tabbar in the editing area on the right. Set focus to ctrl + h ctr + lTabbar to ctrl + tab. Switch the next tab. Double-click to switch the tab, jump directly to the [Number] tab. close the same as above. author Zxlong

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.