.vimrc

changeset 750
36a4da0a9863
parent 749
27f7431c8170
child 751
96ce87777789
--- a/.vimrc
+++ b/.vimrc
@@ -299,8 +299,8 @@ augroup END
 augroup encrypted
   autocmd!
   autocmd BufReadPre,FileReadPre *.gpg,*.gpg.* setl noswapfile noundofile nobackup viminfo=
-  autocmd BufReadPost *.gpg,*.gpg.* :sil %!gpg2 -d
-  autocmd BufWritePre *.gpg,*.gpg.* :sil %!gpg2 -se -a --default-recipient-self
+  autocmd BufReadPost *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -d')
+  autocmd BufWritePre *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -se -a --default-recipient-self')
   autocmd BufWritePost *.gpg,*.gpg.* :sil undo
 augroup END
 "}}}

mercurial