[vi] add/remove password on vi editor (vim)

it’s useful for protecting personal code from others. (ref)

just add “-x” option.

$ vi -x test.txt

then, inserts password, and confirms the password. done!

So, Simple 🙂

 

<update>

remove the password (ref)

:set key=

then, save it.

Advertisements