Re-execute command by :history option in VIM -


how can execute command again listed in the

:history 

option in vim. there numbers shown. way copy command hand, re-enter it? or there in shell script.

:history there @ it.

to re-execute previous command, have 2 options:

  • use <up> , <down> @ command prompt:

    :m10 (do stuff) :<up> 
  • use "command-line window":

    you can call q: , navigate search , use beautiful normal mode commands love.

    position cursor on line , hit <cr> re-execute command.

    edit command , hit <cr> execute new command.

    you can quit command-line window :q.

    see :help cmdline-window.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -