vim命令总结(待更新)

esc    make sure you are in normal mode

:q! <enter>   discards any changes you made

:wq     save the changes

x    delete the character

i     insert before the cursor

   append after the line

dw      delete a word until the start of the next word excluding its first character

de     delete a word to the end of the current word including the last character

d$     delete to the end of the line

2w     movethe cursor 2 words forward

3e     move the cursor to the end of the third word forward

0(zero)     move to the start of the line

d2w     delete the two upper case words

dd     delete a whole line

u     undo the last commangds

capital U     return the line to its original state

ctrl-r     undo the undo's

p     put previously deleted text after the curosr(剪切)

rx     replace the character at the cursor with x(r后面是修改后的字母,此命令为用x代替原来的字母)

ce     deletes the word and places you in insert mode

cc     does the same for the whole line

c$     delete the rest of the line from the cursor

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值