Configuring the Vim development environment

Source: Internet
Author: User

  Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Vim is purely free software.

To meet the user's requirements, it became popular to configure the Vim interface as the desired interface type. Here's a brief introduction to Vim's configuration process:

1, first, in order to ensure the ease of operation (directly drag files under Windows to the virtual machine environment), before configuring Vim, check the Linux environment file sharing function is open:

If it is not, always enable/enable before the next shutdown or suspend, shared folders, options, settings, virtual machines, toolbars found.


http://www.vim.org/scripts/script.php?script_id=273
download Taglist_xx.zip, unzip the finished, put the extracted doc content to ~/.vim/doc, will
content copied from the extracted plugin to ~/.vim/plugin



  3. Install File Browser and window Manager--plugin: Winmanager
Http://www.vim.org/scripts/script.php?script_id=95
Download Winmanager.zip, version 2.X or above.
Unzip the Winmanager.zip, put the extracted doc content to ~/.vim/doc, will extract out
Copy of the content under the plugin to ~/.vim/plugin

 4. Write the. vimrc file

(1),

Set syntax highlighting: syntax on

Display line number:set nu

Set the number of spaces for indentation to 4:set shiftwidth=4

Add in ~/.VIMRC:
Let tlist_show_one_file=1
Let Tlist_exit_onlywindow=1
Let Tlist_use_right_window=1

Let g:winmanagerwindowlayout= ' fileexplorer| TagList '
Nmap wm:wmtoggle<cr>

(note upstream Nmap Wm:wmtoggle<cr>, where WM has a space after it)

 5. Then restart Vim, open ~/vim71/src/main.c, enter "WM" in normal state, the result is as follows:

Configuring the Vim development environment

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.