Converting VIM into an IDE programming environment

Source: Internet
Author: User

One: Install Chinese help manual

1. Open a terminal
2. Download vimcdoc-1.5.0.tar.gz
: http://nchc.dl.sourceforge.net/sourceforge/vimcdoc/vimcdoc-1.5.0.tar.gz
3, decompression TAR-ZXVF vimcdoc-1.5.0.tar.gz

4. Enter the folder to unpack the package
CD vimcdoc-1.5.0
5 . Installation
sudo./vimcdoc.sh-i
6. Test Open Vim
Input: Help If successful you should see the Chinese helper document

1:

Figure 1

Attention:

A. If you cannot display Chinese, add the following sentence in ~/.VIMRC:

Set HELPLANG=CN

Two: see if there are any of these paths that you create manually , such as:

~/.VIMRC
~/.vim/plugin
~/.vim/doc
~/.vim/syntax

Three: Location of configuration files

Under directory/etc/, there is a file named VIMRC, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a configuration file named:. VIMRC ". For example, under the/root directory, a. vimrc file is usually already present.

1. Switch to your own directory

< Span style= "font-family: ' Microsoft Yahei ';" >      2. Set syntax highlighting, add in/.VIMRC: syntax on

3. Display line numbers, adding:set nu in/.VIMRC

4. Set the number of spaces for indentation to 4, add in/.VIMRC: Set shiftwidth=4

< Span style= "font-family: ' Microsoft Yahei ';" >      5. Install TagList plugin
                  A, download taglist_xx.zip, link
http://www.vim.org/scripts/script.php? script_id=273

B, decompression completed, will extract the contents of the doc to ~/.vim/doc, will Extract the contents of the plugin under the copy to ~/.vim/plugin

C, enter the ~/.vim/doc directory and run "Helptags" under vim. Command. This step is to add the Help document under Doc to the VIM Help topic so that we can see the TagList help by running "Taglist.txt" in vim.

D. Open the configuration file ~/.VIMRC and add the following lines:

The settings are explained as follows:

Let tlist_show_one_file=1 "does not display the tag of multiple files at the same time, only displays the current file"

Let Tlist_exit_onlywindow=1 "if the TagList window is the last window, exit vim"

Let Tlist_use_right_window=1 "Associate TagList with Ctags"

E, basic ability to use the method

Run ": Tlist" on the VIM command line to open the TagList window and run ": Tlist" again to close.

Left and right window switch CTRL+WW

:

6. Install the file browser and Windows Manager-plugin: Winmanager
           a, download Winmanager.zip, version 2.X, link address:
/http/ www.vim.org/scripts/script.php?script_id=95
          B, Unzip the Winmanager.zip, put the extracted doc content to ~/.vim/doc, will extract the

C, Add in ~/.VIMRC:


" Set Interface separation
" taglist| FileExplorer"" automatically opens Winmanager 1 when entering vim

D, then restart Vim, open the file in normal state input "WM", you can use

7. Conversion of c|h files to each other

A, download link:http://www.vim.org/scripts/script.php?script_id=31, after downloading A.vim put into ~/.vim/plugin folder

B, with vim to open its source/header file only with a button to switch over

: A switches to the c/h file in the new buffer

: As Landscape split window and open c/h file

: AV Portrait Split window and open c/h file

: At Create a new tab and open the c/h file

Converting VIM into an IDE programming 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.