Vim password manager

Vim can also be used to safely store information, by encrypting text files with different cryp methods. To see the cryp method that Vim is currently using, type:

:set cryptmethod?

We can see in our case it is zip, which is not actually a crypto method and does not offer much in terms of security. To see what different alternatives we have, we can type:

:h 'cryptmethod'
Vim password manager

A page describing the different encryption methods comes up. We can choose from zip, blowfish, and blowfish2.The most secure and recommended one is, of course, blowfish2. To change the encryption method, type:

:set cryptmethod=blowfish2

This can be also added to vimrc ...

Get Working with Linux – Quick Hacks for the Command Line now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.