You can enter insert mode by one of the following commands. In addition to
these, you will enter insert mode if you give a change command with a line
command as the motion command. Insert commands are also modifying commands
and you can repeat them by the repeat command . (
Enter insert mode at point (
Enter insert mode at the first non white character on the line
Move point forward by one character and then enter insert mode
Enter insert mode at end of line (
Open a new line below the current line and enter insert mode
Open a new line above the current line and enter insert mode
Insert a newline and leave point before it, and then enter insert mode
Insert mode is almost like emacs mode. Only the following 4 keys behave differently from emacs mode.
This key will take you back to vi mode (
Delete previous character (
Delete previous word (
This key simulates ESC key in emacs mode. For instance, typing
C-z x in insert mode is the same as typing ESC x in emacs mode
You can also bind C-h to
help-command if you like.
(See Customizing Key Bindings, for details.) Binding C-h to
help-command has the effect of making the meaning of C-h
uniform among emacs, vi and insert modes.
When you enter insert mode, VIP records point as the start point of insertion, and when you leave insert mode the region between point and start point is saved for later use by repeat command etc. Therefore, repeat command will not really repeat insertion if you move point by emacs commands while in insert mode.