vim
Contents
Password-protected file
Creating a password-protected file using Vim
vim -x <filename.txt>
Accessing password-protected file
vim <filename.txt>
Changing password for a file in vim
Once the file has been opened in vim, type :X
(blank password for removing the password)