Repeat Last Command in VIM
Here I describe how to repeat command in three different mode
- normal mode
- command mode
- insert mode
Normal Mode
use semi-colon
for example, you find '~' in a line whereas got multiple '~' in that line, then you've 2 options to move to next '~'
f + ~ agine
or
use semi-colon
Command Mode
use @:
command line will show previous command been executed.
Insert Mode
use dot .
will insert content you inserted early.
版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.