Configuration of Vim in Linux virtual machines

Source: Internet
Author: User

The first step:

Vim Installation: First switch the command window to a super user, then enter the Yum install VIM command in the command window to Download the vim-related software

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/09/wKiom1dpB76CPiBfAAEwS8TcJXA041.png-wh_500x0-wm_3 -wmp_4-s_2132964135.png "title=" 1.png "alt=" Wkiom1dpb76cpibfaaews8tcjxa041.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/08/wKioL1dpB87jhOugAADjL2AO76M250.png-wh_500x0-wm_3 -wmp_4-s_410434584.png "title=" 2.png "alt=" Wkiol1dpb87jhougaadjl2ao76m250.png-wh_50 "/>

Enter # Rpm-qa |grep vim in the command window to see if the vim related package is installed

VIM-related software to be installed:

Vim-enhanced-7.2.411-1.4.el6.x86_64

Vim-common-7.2.411-1.4.el6.x86_64

Vim-minimal-7.2.411-1.4.el6.x86_64

Vim-x11-7.2.411-1.4.el6.x86_64

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/83/09/wKiom1dpCJaDZkDwAAA2bgZDpfQ623.png-wh_500x0-wm_3 -wmp_4-s_1752691941.png "title=" 3.png "alt=" Wkiom1dpcjadzkdwaaa2bgzdpfq623.png-wh_50 "/>

Step Two:

Configure Vim, touch a . VIMRC file under the Hyper-user , and then ls-a See if the file was established successfully

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/83/08/wKioL1dpCRLCWAU9AADz37_B_gg684.png-wh_500x0-wm_3 -wmp_4-s_462039927.png "title=" 4.png "alt=" Wkiol1dpcrlcwau9aadz37_b_gg684.png-wh_50 "/>

in the Command window, enter vim. VIMRC , go to the Configuration window, enter the following configuration, and save

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/09/wKiom1dpCWnyyEVSAABBYt8bkew255.png-wh_500x0-wm_3 -wmp_4-s_1465474481.png "title=" 5.png "alt=" Wkiom1dpcwnyyevsaabbyt8bkew255.png-wh_50 "/>

In the Configuration window, enter the following configuration:

Set number displays line numbers
set autoindent auto Align
set smartindent smart Alignment
set Showmatch bracket matching pattern
Set ruler display status line
set Incsearch when searching with the input side display effect
set tabstop=4 tab key is 4 spaces
Set shiftwidth=4the number of indent spaces is 4
set cindent C language format alignment
set Nobackup do not back up files
set clipboard+=unnamed shared clipboard with windows
syntax on syntax highlighting

Set Mouse=a Mouse support


Configuration of the G++/gdb/ctags:

Configuration of the g++

In the Command window, enter yum install gcc-c++
GDB's configuration

In the Command window, type yum install GDB

Configuration of the Ctags

In the Command window, enter yum install Ctags





This article is from the "11275984" blog, please be sure to keep this source http://11285984.blog.51cto.com/11275984/1791463

Configuration of Vim in Linux virtual machines

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.