Password protecting file in vim text editor
add +X before any file name & it will prompt you to enter a password
Example
vim +X filename
Now next time it will ask for the password while opening the file
If you don't want the password you can simply remove the same with below stpes
Open you file & press Esc
:set key=
then, save the file
add +X before any file name & it will prompt you to enter a password
Example
vim +X filename
Now next time it will ask for the password while opening the file
If you don't want the password you can simply remove the same with below stpes
Open you file & press Esc
:set key=
then, save the file
No comments:
Post a Comment