Repeat Last Command in VIM

Repeat Last Command in VIM

Here I describe how to repeat command in three different mode

  1. normal mode
  2. command mode
  3. 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.

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

留言

你的邮箱是保密的 必填的信息用*表示