From: Simon Ruderich Date: Sun, 17 Jun 2018 06:20:26 +0000 (+0200) Subject: vim/vimrc: use cryptmethod=blowfish2 if available X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=3bf45b718764886c0145179534536f91c5e6df5b;p=config%2Fdotfiles.git vim/vimrc: use cryptmethod=blowfish2 if available --- 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