more VIM cheatsheet

This commit is contained in:
Morgan 2019-08-09 04:58:57 +02:00 committed by GitHub
parent f7fe07c50f
commit c3d540a23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,17 @@
### Remove trailing spaces
`:%s/\s\+$//e`
### Create a password-protected file using vim:
`vim -x ostechnix.txt`
### To remove the password, open the file using vim:
`vim ostechnix.txt`
And type:
`:set key=`
Finally type `:wq` to save and close the file.