diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-11 01:05:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-11 01:05:43 +1300 |
commit | 1fa87f5febbd521bc239abe60b33c57a5932beba (patch) | |
tree | 62e969e08443ba0b90c6209dd03c2ff961fa72f8 /vim/config | |
parent | Merge branch 'feature/vimrc-reunify' into develop (diff) | |
parent | Move mutt_mail.vim line select logic into plugin (diff) | |
download | dotfiles-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')
-rw-r--r-- | vim/config/command.vim | 7 |
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 |