Vim No color solution

Source: Internet
Author: User

Yum-y install VIM, it is normal to use VIM to edit the text.

But sometimes there will be vim can open, insert or modify the file, there is garbled, case of strange action.

The reason is that Vim is not enabled properly.

First, ensure that the client's settings are correct.

For example, SECURECRT client, select the session option--terminal--emulation, and then follow the settings.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/B3/wKiom1Sicqui_6EvAAFb69KDqio563.jpg "title=" 33.png "alt=" Wkiom1sicqui_6evaafb69kdqio563.jpg "/>

If there is still no color.

Use the following method to modify:

Vi/root/.bashrc

Add 2 rows to the bottom:

Term=xterm

Export term

Exit after saving,

Executes the bash command.

Then Echo $TERM

See what it is. The return is xterm is correct, this time vim should have color.

Can vim/etc/passwd look at the color.

This time you need to continue to do the following again

Vi/root/.bashrc

Put

Term=xterm

Export term

Remove Save

Then disconnect the client securecrt and reconnect it.

And then in Echo $TERM

The return value is Linux on OK.

This article is from the "haierxing" blog, make sure to keep this source http://haierxing.blog.51cto.com/1337213/1597880

Vim No color solution

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.