Some quick basics on working with your file.
vi file: open your file invim:w: write your changes to the file:q!: get out of vim (quit), but without saving your changes (!):wq: write your changes and exitvim:saveas ~/some/path/: save your file to that locationvim
[ NOTE: While
:wq works I tend to use ZZ, which doesn’t require the “:” and just seems faster to me. You can also use :x ]ZZ: a faster way to do:wq
No comments:
Post a Comment