Vim Configuration highlighting

Source: Internet
Author: User

Often use SECURECRT under Linux to modify some configuration files, use VI to open always a color, looking up compared to the big head.

Because VI does not support highlighting, you need to use VIM.

Install Vim:yum install-y vim (Ubuntu using Apt-get)

Global (All users) Vim configuration file path:/ETC/VIMRC

Current user vim configuration file path: ~/.VIMRC

If the file exists, back it up so that you don't find it later.

In the VIMRC file, enter:

Syntax onset Hlsearchcolorscheme Desert

It takes only 3 lines to do it.

Using the color scheme here is Murphy, you can view the current system's color scheme by command: ll/usr/share/vim/vim74/colors/(the path here is based on the path of vim installation)

You can see the highlights on the CentOS system here.

However, SECURECRT also requires some configuration:

1. Session options->terminal->emulation->terminal (select xterm) and check the following ANSI Color

2. Session options->terminal->emulation-> Tick Select an alternate Keyborad Emulation, then select Xterm in the dropdown box

Re-open the SECURECRT to CentOS connection and you'll see the highlights.

Vim Configuration highlighting

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.