Vim command line mode
The vim command-line mode is the mode we enter when typing Ex commands (:
), search patterns (/
, ?
) or filter commands (!
). This mode works a little like insert mode, in that whatever we type, is going to appear in the command line. It is not as powerful as the normal mode, but there are a few combinations we can use to move more efficiently:
Ctrl+left
,Ctrl+right
- Using the arrow keys we can move left and right one character at a time. If we press Ctrl together with the left or right keys, we will move one word at a timeCtrl+B
,Ctrl+E
- Move to the beginning and end of the command line, respectivelyCtrl+W
- Deletes the word before the cursor (Only deletes characters at the left of the cursor)