# HG changeset patch # User Peter Sanchez # Date 1646937573 21600 # Thu Mar 10 12:39:33 2022 -0600 # Node ID ccae5bbb72cc1a4f3b36057508ee2d447efb4aa5 # Parent ab15a8c1b493cd4d667f69d9389329458f6fe838 Adding shortcuts for sourcehut patches diff --git a/vim/vimrc b/vim/vimrc --- a/vim/vimrc +++ b/vim/vimrc @@ -462,3 +462,20 @@ " NerdCommentor let g:NERDDefaultAlign = 'left' + +" ctags +" autocmd BufWritePost *.py,*.c,*.h silent! !ctags . & + +" Sourcehut commands, used when editing emails in mutt +command! Sa call SrhtApplied() +command! Sv call SrhtRevision() +command! Sr call SrhtRejected() +function! SrhtApplied() + normal! iX-Sourcehut-Patchset-Update: APPLIED +endfunction +function! SrhtRevision() + normal! iX-Sourcehut-Patchset-Update: NEEDS_REVISION +endfunction +function! SrhtRejected() + normal! iX-Sourcehut-Patchset-Update: REJECTED +endfunction