If you're typing a command in Vim (I mean you've started with :
and you're working in the bar at the bottom of the screen) is there a way to move the cursor around other than tapping the arrow keys? In particular, can you move it to the beginning, end, back n characters, or back one word?
To move left, press h . To move right, press l . To move down, press j . To move up, press k .
You will see list of commands that matches characters in front of the cursor by pressing CTRL-D in the command mode. For example, if you pressed :se in normal mode, then pressed CTRL-D , you will see list of commands that start with se .
Press 0 to go to the beginning of a line, or ^ to go to the first non-blank character in a line.
Tap Ctrl+F while in command-line mode (just after :
). There you'll get command-line window which could be edited&navigated as a regular vim window (hjkl etc.).
See :h cmdline-window
for details.
Type
:h cmdline-editing
for details. I am listing a few of the interesting non-arrow commands that do something similar to what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With