bookmarks/cheat/vim.md

18 lines
263 B
Markdown
Raw Normal View History

2019-08-09 02:55:12 +00:00
### Remove trailing spaces
`:%s/\s\+$//e`
2019-08-09 02:58:57 +00:00
### 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.