Vim syntax does not highlight the problem

Source: Internet
Author: User

Today new to a Linux server to work, one in to find grammar is not highlighted. I opened the file with VI.

And then all sorts of changes. VIMRC stuff.

Changing the term environment variables will not work.

I've been tinkering.

It was later discovered because VI was not aliased into vim.


In this way, syntax highlighting and other advanced things are the function of vim.  And VI is the basic Editor, you can understand that VI is part of the system. Vim is an enhanced version.

The solution is to add a row to the. BASHRC

Alias Vi= ' Vim '


This is used to open the file with VI students, you can actually use the vim of this program, and enjoy its convenience.


The novice is like this, the sad reminder of the experience, I hope others do not like me to waste time.


Vim syntax does not highlight the problem

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.