esc command mode
q! exist and discarding changes
i insert
a append
x delete a character
dw delete a word
dd delete a line
3dd delete 3 lines
u undo previous change
ZZ exist, saving changes
hjkl same as arrow keys
/ search forward
? search back
n repeat the same forward search
N repeat the opposite direction
( beginning of sentence
) end of sentence
{ beginning of paragraph
} end of paragraph
w forward one word
b back one word
:set nu Display line number
:set nonu Hide line number
G move to the last line in the file
xG move to line x
本文详细介绍了Vim编辑器的基本使用方法及各种实用快捷键,包括命令模式下的操作如删除、撤销、保存等,以及插入模式和末行模式的切换方式。适合初学者快速上手并提高工作效率。
182

被折叠的 条评论
为什么被折叠?



