Vim configuration under Linux chapter--centos

Source: Internet
Author: User

First, the benefits of configuring VIM

With VIM configuration, we can make it easier to tap the code later. Press F5 can directly compile and execute C, C + + code and execute shell script, press "F8" for C, C + + code debugging, "Ctrl + A" for all Select and copy shortcut keys, easy to copy code, press "F2" can directly eliminate blank lines in the code, F3 "can list the current directory file, Open the tree file directory, support code highlighting, auto indent, display line number, display status line, press "Ctrl + P" can be automatically complete and so on.

Ii. Configuration of Vim

(1) Download VIMRC file

Http://files.cnblogs.com/ma6174/vimrc.zip

Download the compressed package VIMRC, decompression and named. VIMRC, place the file under the current user's directory

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/00/wKioL1dHFyvwP7oYAACebMRxzi0599.png-wh_500x0-wm_3 -wmp_4-s_1767003660.png "style=" Float:none; "title=" Untitled. png "alt=" wkiol1dhfyvwp7oyaacebmrxzi0599.png-wh_50 "/>

Open the. virmc

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/01/wKiom1dHFjWw6bOEAAEYF3A1hBw814.png-wh_500x0-wm_3 -wmp_4-s_1063680173.png "style=" Float:none; "title=" Captures 1. PNG "alt=" Wkiom1dhfjww6boeaaeyf3a1hbw814.png-wh_50 "/>


(2) Download TagList plugin, install; download Browser Winmanager plugin, install

Create a vim directory under the current user, open the VIM directory, and create the doc and plugin directories.

Open Link http://www.vim.org/scripts/script.php?script_id=273, download taglist_ Xx.zip, Taglist.txt placed in the doc directory after decompression, Taglist.vim placed in the plugin directory.


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/82/01/wKiom1dHFjbhoC9nAACOPlXfQI8329.png-wh_500x0-wm_3 -wmp_4-s_2281150191.png "style=" Float:none; "Title=" Captures 2. PNG "alt=" Wkiom1dhfjbhoc9naacoplxfqi8329.png-wh_50 "/>


Open link http://www.vim.org/scripts/script.php?script_id=9 , download Winmanager.zip, winmanager.txt into ~/.vim/doc after decompression , put Winfileexplorer.vim,winmanager.vim and wintagexpiorer.vim into

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/82/00/wKioL1dHFyzDiyIXAACAEwZA7Lo821.png-wh_500x0-wm_3 -wmp_4-s_583197807.png "style=" Float:none; "Title=" Captures 3. PNG "alt=" Wkiol1dhfyzdiyixaacaewza7lo821.png-wh_50 "/>


Enter Vim. VIMRC at the command line and enter the following command at the end of the open. 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>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/00/wKioL1dHIk_xTR5XAADw1jBZywM906.png-wh_500x0-wm_3 -wmp_4-s_1991047155.png "title=" Capture 4. PNG "alt=" Wkiol1dhik_xtr5xaadw1jbzywm906.png-wh_50 "/>

Enter the vim test.c at the command line and enter the VM in the open test.c to see the following

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/01/wKiom1dHFjfSxl_xAAC7kEmTuSQ822.png-wh_500x0-wm_3 -wmp_4-s_2752484646.png "style=" Float:none; "Title=" captures 5. PNG "alt=" Wkiom1dhfjfsxl_xaac7kemtusq822.png-wh_50 "/>


This article is from the "Shuoyuexinmao Cloud" blog, please be sure to keep this source http://19940325.blog.51cto.com/10789287/1783681

Vim configuration under Linux chapter--centos

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.