]> gitweb.fluxo.info Git - rhatto/dotfiles/vim.git/commitdiff
For email: unfold and delete to your signature
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Dec 2014 13:56:43 +0000 (11:56 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Dec 2014 13:56:43 +0000 (11:56 -0200)
vimrc.dot.link

index e7e675f91970d7fbc084308d5f2a215f57895a7d..7b04e3773166bbbe009e8e8e8b36477e4647b6e5 100644 (file)
@@ -137,6 +137,10 @@ vmap <C-x> "+c
 " mail composition, which is annoying.
 au FileType mail set noautoindent
 
+" For email: unfold and delete to your signature
+" See https://hroy.eu/tips/vim/email-delete-til-signature/
+noremap ,dd zi:.;/^-- $/d<CR>O-- <UP><End><CR><CR><UP><CR><C-O>zi
+
 " Color scheme
 "colorscheme github
 "colorscheme solarized