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