Reputation: 21
I mean, how to move cursor forward or backward in last line mode.
You know, hjkl can be used in command mode. But when we type :, we will enter into "last line mode". But in this mode, I have to use the left/right arrow to move cursor.
So my question is: can I use hjkl to move cursor in last line mode?
Upvotes: 1
Views: 733
Reputation: 172600
That mode is called command-line mode. Yes, there is limited navigation in there (the list of commands starts at :help c_CTRL-V
); most keys are inserted literally. This is because the mode is not meant for intensive editing; you're supposed to only type new commands, or do minor corrections to a recalled older one.
If you do need the full editing capabilities, just switch to the command-line window. You can do this by pressing Ctrl + F from the command-line, or just immediately enter it via q:
instead of :
(and likewise q/
instead of /
). Cp. :help cmdwin
Upvotes: 5