vim insert mode command code example
Example 1: vim commands
vim filename
i
*Insert/Edit Text*
*Esc*
:wq (save the file and exit to commands)
Example 2: vim use normal keys in insert mode
Just hold down "Alt" key!
Example:
---------------------
Suppose you are in insert mode and want to delete a line without
switching to normal mode.
Usually you should press dd to remove a line but in this case
hold down Alt key and then press dd. That's it! and It's gonna
switch to normal mode automatically.
---------------------