aboutsummaryrefslogtreecommitdiff
path: root/vim/config/command.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/config/command.vim')
-rw-r--r--vim/config/command.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/config/command.vim b/vim/config/command.vim
index 031772e9..e6679b84 100644
--- a/vim/config/command.vim
+++ b/vim/config/command.vim
@@ -29,3 +29,10 @@ nnoremap <silent>
nnoremap <silent>
\ <Leader>D
\ :<C-U>read !date -u<CR>
+
+" \m in visual/select mode starts a mail message with the selected lines
+vmap <Leader>m <Plug>MailMuttSelected
+" \m in normal mode starts a mail message with the current line
+nmap <Leader>m <Plug>MailMuttLine
+" \M in normal mode starts a mail message with the whole buffer
+nmap <Leader>M <Plug>MailMuttBuffer