0

how to set password for VIM file

how to set password for the newly created file using VIM editor?

vim Password Safe Add a comment
brayden
asked May 10 2017

Answer

0

Create a file with -x option to protect or encrypt the contents.

For example:

# vim -x test.txt

It will ask for the new password. Once its set no one can access (View/Edit) the file without password.

Add a comment
jagannatharumugam
asked May 10 2017
edited Oct 05 2018
Post your Answer