Mon, 13 Mar 2023 17:54:44 -0500
Add neodev.nvim
1022 | 1 | " https://mjj.io/2015/01/27/encrypting-files-with-gpg-and-vim/ |
2 | " hacked to work with vimwiki | |
3 | augroup encrypted | |
4 | autocmd! | |
5 | autocmd BufReadPre,FileReadPre *.gpg,*.gpg.* setl noswapfile noundofile nobackup viminfo= | |
6 | autocmd BufReadPost *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -d') | |
7 | autocmd BufWritePre *.gpg,*.gpg.* call vimrc#SafeFilterFile('gpg2 -se -a --default-recipient-self') | |
8 | autocmd BufWritePost *.gpg,*.gpg.* :sil undo | |
9 | augroup END | |
10 |