Vim Installation and Configuration

Source: Internet
Author: User
1.1 Installing VIM

Terminal Input Command Installation

Installing Vim:yum install vim under CentOS

Ubuntu installation Vim:sudo Apt-get install vim

Note: If you are not prompted for permission at the time of installation, you are need to being root to perform the This command. Use root privileges;

[email protected] ~]$ Yum install vim

Loaded Plugins:fastestmirror, Refresh-packagekit, security

You need to is root to perform the This command.

[[email protected] ~]$ su root

Password:

[Email protected] centos]#

1.2 Configuring VIM

In the home directory, i.e. CD ~ Lower VI. VIMRC

[Email protected]:~/xb/c++$ VI ~/.VIMRC

Set Nu

Set tabstop=4

Set Autoindent

Set Smartindent

Syntax on

Vim Installation and Configuration

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.