vim常用命令

1、移动行

G 移到最后一行  

gg移到第一行  

0移到该行第一字符

n+enter下移n行  

nG移到第n行

2、删除字符:

nx连续向后删除n个字符

nX连续向前删除n个字符

3、

dd 删除  ndd

yy 复制  nyy

p 粘贴  

u 撤销

ctrl + r 重做  repeat

.  重做

猜你喜欢

转载自www.cnblogs.com/li-ling/p/8921116.html