Environment: securecrt for mac.
Note that the effect of securecrt and terminal is the same.
terminal | VIM |
Ctrl + a: move to the beginning of the command line Ctrl + e: move to the end of the command line Ctrl + u: delete from the cursor to the beginning of the command line |
Ctrl + a : in edit mode, delete the current line; Ctrl + e: in view mode, delete the current line; Ctrl + u: in edit mode, delete the current line; |
Ctrl + xx: move between the beginning of the command line and the cursor
In addition, in vim, move to the beginning of the current line, in view mode, enter 0;
To move the end of the current line, in view mode, enter $
------------------------------------------------------------------------------------------------------
Can use upgraded vim, supports syntax highlighting