vim command to edit code example
Example 1: vim commands
vim filename
i
*Insert/Edit Text*
*Esc*
:wq (save the file and exit to commands)
Example 2: edit in vim
Press i letter on your keyboard to start editing (Insert Mode). When youre done press the ESC key to exit insert mode