From 3bf45b718764886c0145179534536f91c5e6df5b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 17 Jun 2018 08:20:26 +0200 Subject: [PATCH] vim/vimrc: use cryptmethod=blowfish2 if available --- vim/vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 8476842..bb7ac1e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -136,9 +136,13 @@ if has('viminfo') set viminfo^='1000 endif -" Use strong encryption if possible, also used for swap/undo files. +" Use strong(er) encryption if possible, also used for swap/undo files. if exists('+cryptmethod') - set cryptmethod=blowfish + if s:HasVersionAndPatch(704, 399) + set cryptmethod=blowfish2 + else + set cryptmethod=blowfish + endif endif " Clear all vimrc-related autocmds. Has to be done here as the vimrc augroup -- 2.45.2