To open a new file in Vim, type `:e file.txt`."
在Vim中打开一个新文件,输入`:e file.txt`。
Use `gg` to move to the beginning of the file.
使用`gg`键移动到文件开头。
Press `i` to enter insert mode and start typing.
按下`i`键进入插入模式开始输入。
To save changes and exit, type `:wq`."
要保存并退出,输入`:wq`。
Use `Ctrl + W` followed by `j` or `k` to navigate between splits.
通过按`Ctrl + W`然后`j`或`k`在分屏间切换。
To search for a word, type `/word` and press `Enter`."
搜索单词时,输入`/word`后按回车。
To undo the last action, use `u`."
撤销上一步操作,使用`u`。
To create a new line below the current one, hit `Enter` twice.
在当前行下创建新行,两次回车。
Use `:set number` to show line numbers.
设置显示行号,输入`:set number`。
For syntax highlighting, press `ZZ` after making changes.
完成编辑后,按`ZZ`以启用语法高亮。
- With motors rotating and machines roaring, China's industrial firms started the first week after the Chinese Lunar New Year holiday full of vim and vigor.
BEIJING-With motors rotating and machines roaring, China's industrial firms started the first week after the Chinese Lunar New Year holiday full of vim and vigor.
未经许可,严禁转发。QQ交流群:688169419