Vi cannot edit the problem (1H appears) solved

When we use VI to edit the file, we occasionally encounter that the file cannot be edited, and the command line prompts a character similar to 1H. Usually, this situation is caused by the wrong character set we set.
We can use the locale command to check the character set supported by the system, And modify the character set.
For example : after export LANG=zh_CN.UTF-8
is executed, the file can be edited; if it needs to take effect for a long time, the .bash_profile file needs to be changed

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326175514&siteId=291194637