📜  如何使用 vi 编辑器 mac - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:23.894000             🧑  作者: Mango

代码示例1
Type "vi file.txt" at command prompt.
Move cursor to where new text will be added.
Type "i" to change to insert mode.
Type new text.
Type ESC to go back to command mode.
type ":wq" and ENTER to write the file and quit.