From 5ed0420e74b963fe1ac2e4a53e737c9c420b55f7 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 27 Dec 2024 12:16:13 -0500 Subject: fix gpg vimrc --- dot_vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dot_vimrc') diff --git a/dot_vimrc b/dot_vimrc index 4e179a2..507b769 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -26,3 +26,12 @@ set pastetoggle= au BufEnter ~/.local/state/neomutt/* set textwidth=72 | set list lcs=trail:-,nbsp:% | set filetype=mail au BufEnter */gophermap set list lcs=trail:-,nbsp:%,tab:»·,space:· + +augroup encrypted + autocmd! + autocmd BufReadPre,FileReadPre *.gpg set viminfo= + autocmd BufReadPre,FileReadPre *.gpg set noswapfile noundofile nobackup + autocmd BufReadPost *.gpg :%!gpg --decrypt 2> /dev/null + autocmd BufWritePre *.gpg :%!gpg -ae --default-recipient-self + autocmd BufWritePost *.gpg u +augroup END -- cgit v1.2.3