代码拉取完成,页面将自动刷新
nggg # move to n lines after
dggg # delete from the cursor "|" to the end
yggg # copy from the cursor "|" to the end
d3w # delete 3 words
nx # delete n characters after
nX # delete n characters before
d0 # delete from the cursor "|" to the beginning of the line
d$ # delete from the cursor "|" to the end of the line
y0 # copy from the cursor "|" to the beginning of the line
y$ # copy from the cursor "|" to the end of the line
p # paste after the current line
P # paste before the current line
u # cancel
ctrl+r # redo
. # repeat
~ # capitalize
guaw # de-capitalize
3~ # capitalize 3 characters
g~~ # capitalize line
>ggg # indent to the end
// macros
qw(action)q # register macros as w
@w # use macros
@@ # repeat last macros
7@w # use macros 7 times
// visual mode
v # visual mode
shift+v # visual line
ctrl+v # visual block
:e newfile.txt # create a new file
:10,20s/word1/word2/g # 替换10-20行间所有的word1为word2
:10,Ss/word1/word2/g # 替换10-最后一行
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。