Search code examples
vim

vim: 'Normal mode' Command to repeat last 'Command mode' command?


is there any 'Normal mode' command to repeat last command runs in 'command-line mode'?

for example i move up a line in 'command-line mode' with :m -2 and later i want to move up some other lines. is there any normal mode to repeat :m -2 without type :@ in 'command-line mode'.


Solution

  • Just hit @:.

    See :help @: for help.