starting vim
sudo vim filename
sudo chown user filename
a----to enter into insert mode u can use i also
esc---get out of insert mode out of insert
find something
:/ MAX top to bottom
:/? MAX bottom to up
n--next search
:q -----quits
:e filename ---open other file
:q!---force quit
:wq -----save and quit---shift + ZZ
:wq filename ----file save as
No comments:
Post a Comment