From c3d540a23a3d4357587dc3b32c7c602349bcc3fe Mon Sep 17 00:00:00 2001 From: Morgan Date: Fri, 9 Aug 2019 04:58:57 +0200 Subject: [PATCH] more VIM cheatsheet --- cheat/vim.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cheat/vim.md b/cheat/vim.md index 254da20..80ab4be 100644 --- a/cheat/vim.md +++ b/cheat/vim.md @@ -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.