.vimrc

changeset 414
9536ca40b624
parent 409
ef7a3edc69e9
child 416
ef460163c246
equal deleted inserted replaced
413:4a2c2c1541d9 414:9536ca40b624
344 " Set file marks by "category" on switch-away 344 " Set file marks by "category" on switch-away
345 autocmd BufLeave *.css,*,less,*.scss normal! mC 345 autocmd BufLeave *.css,*,less,*.scss normal! mC
346 autocmd BufLeave *.html,*.ep,*.tt normal! mH 346 autocmd BufLeave *.html,*.ep,*.tt normal! mH
347 autocmd BufLeave *.js normal! mJ 347 autocmd BufLeave *.js normal! mJ
348 autocmd BufLeave *.pl,*.pm normal! mP 348 autocmd BufLeave *.pl,*.pm normal! mP
349 augroup END
350
351 " https://mjj.io/2015/01/27/encrypting-files-with-gpg-and-vim/
352 augroup encrypted
353 autocmd!
354 autocmd BufReadPre,FileReadPre *.gpg set noswapfile noundofile nobackup viminfo=
355 autocmd BufReadPost *.gpg :%!gpg --decrypt 2> /dev/null
356 autocmd BufWritePre *.gpg :%!gpg -se -a --default-recipient-self
357 autocmd BufWritePost *.gpg u
349 augroup END 358 augroup END
350 "}}} 359 "}}}
351 360
352 361
353 " Perl type-specific settings {{{ 362 " Perl type-specific settings {{{

mercurial