aboutsummaryrefslogtreecommitdiff
path: root/vim/config
diff options
context:
space:
mode:
Diffstat (limited to 'vim/config')
-rw-r--r--vim/config/command.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/config/command.vim b/vim/config/command.vim
index 09ee0f40..a8861583 100644
--- a/vim/config/command.vim
+++ b/vim/config/command.vim
@@ -34,3 +34,13 @@ nnoremap <silent>
nnoremap <silent>
\ <Leader>D
\ :<C-U>read !date -u<CR>
+
+" \m fires up mutt with either the whole buffer or the text
+function s:Mutt()
+ let l:tf = tempname()
+ execute 'write '.fnameescape(l:tf)
+ execute '!mutt -i '.shellescape(l:tf)
+endfunction
+nnoremap <silent>
+ \ <Leader>m
+ \ :<C-U>call <SID>Mutt()<CR>