how to edit using vim code example
Example 1: linux edit file
sudo nano filename.ext
Example 2: edit another file in same editor vim
:split file
#switch between files (toggle active file)
ctrl-w ctrl-w
Example 3: 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