X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=67e197d031980f5a77cbe36223df8bd3fe416874;hb=5dbae45eb7d4f0b18d19416910fe9cb0295d730a;hp=caa7a023883d0dc0ad2a0ac23e33b53caa260ab1;hpb=625d3ec4b88565adf112bc907e027f38ceca13b2;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index caa7a02..67e197d 100644 --- a/vimrc +++ b/vimrc @@ -43,6 +43,11 @@ set nomodeline " possible files. set wildmode=longest,list +" Use strong encryption if possible, also used for swap/undo files. +if v:version >= 703 + set cryptmethod=blowfish +endif + " EDIT SETTINGS @@ -356,6 +361,11 @@ if has('autocmd') \ setlocal nonumber | \ endif +" Automatically disable 'paste' mode when leaving insert mode. Thanks to +" Raimondi in #vim on Freenode (2010-08-14 23:01 CEST). Very useful as I only +" want to paste once and then 'paste' gets automatically unset. + autocmd InsertLeave * set nopaste + " AFTER/FTPLUGIN AUTO COMMANDS " Disable spell checking for files which don't need it.