如何检测并可能更改Vim“encryption”模式使用的encryptionalgorithm?

我想开始使用“vim -X”来存储encryption的文本文件。 这是一个很好的介绍如何做到这一点:

http://www.techrepublic.com/blog/security/vim-offers-strong-file-encryption-with-blowfish/4870

但是,如何确定正在使用什么encryptionalgorithm,以及如何将其更改为河豚,如果它是较旧的,不太安全的algorithm?

您可以通过检查cryptmethodvariables来检查当前的encryption方法,如下所示:

 :set cryptmethod cryptmethod=zip 

Vim目前只支持zipblowfish ,而Blowfish则是更强大的方法。