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.vim18
1 files changed, 10 insertions, 8 deletions
diff --git a/vim/config/command.vim b/vim/config/command.vim
index 09ee0f40..e6679b84 100644
--- a/vim/config/command.vim
+++ b/vim/config/command.vim
@@ -4,6 +4,9 @@ set history=2000
" Always tell me the number of lines changed by a command
set report=0
+" Don't write the output of :make to the terminal
+set shellpipe=>
+
" Command-line based features
if has('cmdline_info')
@@ -15,15 +18,7 @@ if has('cmdline_info')
" Show the mode we're using if not normal mode (e.g. --INSERT--)
set showmode
-endif
-" Don't write the output of :make to the terminal
-set shellpipe=>
-
-" Always use forward slashes, I very seldom need to use Vim on Windows for
-" more than scratch space anyway
-if exists('+shellslash')
- set shellslash
endif
" \d inserts the current local date from date(1)
@@ -34,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