common skills in Vi/vim workrecently has been in the Linux system terminal using the Vi/vim to modify the code, because of the coding problems and Vim configuration file problems, so that the review code and modify the code is more laborious, not easy to have been Niang, modified after the feeling of use is very convenient. -------will continue to update this blog post because it will definitely encounter other issues later.
There are several main questions:
1. Code Missing line number: Command mode input: Set Nu2. Code garbled: Command mode input: Set fileencoding=utf-8 meaning: Set text encoding to Utf-8 modeIn addition to using the SET command in VI, you can also use the ICONV command at the terminal,iconv-f gb2312-t utf-8-C a.file > B.fileconverts a A.file file encoded as gb2312 to a b.file file encoded as Utf-83. There are many branch statements in the code that have the if or while braces {} that affect the efficiency of the review, so how do you hide the code inside the curly braces?
by the way, the technique of using Vi/vim to review code: 1. Locate Code line number: Command line mode input: 100 meaning: Jump to line 100th of the Code
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Common skills in Vi/vim work