aboutsummaryrefslogtreecommitdiff
path: root/vim/config/command.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-11 01:05:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-11 01:05:43 +1300
commit1fa87f5febbd521bc239abe60b33c57a5932beba (patch)
tree62e969e08443ba0b90c6209dd03c2ff961fa72f8 /vim/config/command.vim
parentMerge branch 'feature/vimrc-reunify' into develop (diff)
parentMove mutt_mail.vim line select logic into plugin (diff)
downloaddotfiles-1fa87f5febbd521bc239abe60b33c57a5932beba.tar.gz
dotfiles-1fa87f5febbd521bc239abe60b33c57a5932beba.zip
Merge branch 'feature/vim-mutt-plug' into develop
* feature/vim-mutt-plug: Move mutt_mail.vim line select logic into plugin Add new mail_mutt.vim plugin, apply mappings Beginnings of a buffer-to-Mutt mailer plugin
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