.vimrc

changeset 750
36a4da0a9863
parent 749
27f7431c8170
child 751
96ce87777789
equal deleted inserted replaced
749:27f7431c8170 750:36a4da0a9863
297 " https://mjj.io/2015/01/27/encrypting-files-with-gpg-and-vim/ 297 " https://mjj.io/2015/01/27/encrypting-files-with-gpg-and-vim/
298 " hacked to work with vimwiki 298 " hacked to work with vimwiki
299 augroup encrypted 299 augroup encrypted
300 autocmd! 300 autocmd!
301 autocmd BufReadPre,FileReadPre *.gpg,*.gpg.* setl noswapfile noundofile nobackup viminfo= 301 autocmd BufReadPre,FileReadPre *.gpg,*.gpg.* setl noswapfile noundofile nobackup viminfo=
302 autocmd BufReadPost *.gpg,*.gpg.* :sil %!gpg2 -d 302 autocmd BufReadPost *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -d')
303 autocmd BufWritePre *.gpg,*.gpg.* :sil %!gpg2 -se -a --default-recipient-self 303 autocmd BufWritePre *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -se -a --default-recipient-self')
304 autocmd BufWritePost *.gpg,*.gpg.* :sil undo 304 autocmd BufWritePost *.gpg,*.gpg.* :sil undo
305 augroup END 305 augroup END
306 "}}} 306 "}}}
307 307
308 " Perl type-specific settings {{{ 308 " Perl type-specific settings {{{

mercurial