Sometimes in Vim, I'm typing a command and realise that I could really use Vim's motion commands for navigating the command-line:

  • :s/somthing/else/
  • realise that I misspelled something.
  • Fmae and be done with it.

Of course, trying this would just put Fmae at the end of the command. Is there any way to get (a subset of) the vim commands into the vim command-line? After all, that's what it does.


When i need to edit a long command in command line, i use q+:

then i see a list of my last commands and i can move with regular vim motions and it's easy to edit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy