0
Q:

edit in vim

vim filename 
i
*Insert/Edit Text*
*Esc*
:wq       (save the file and exit to commands)
2
sudo nano filename.ext
2
Press i letter on your keyboard to start editing (Insert Mode). When youre done press the ESC key to exit insert mode
1
i - insert before the cursor

I - insert at the beginning of the line

a - insert (append) after the cursor

A - insert (append) at the end of the line

o - append (open) a new line below the current line

O - append (open) a new line above the current line

ea - insert (append) at the end of the word
1

New to Communities?

Join the community