Skip to content

Commit

Permalink
Add shortcut to quickly edit a mail message.
Browse files Browse the repository at this point in the history
  • Loading branch information
duff committed Nov 15, 2012
1 parent 70ca5a3 commit ebf35df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set autoread " reload files changed outside of
set autowrite " some commands should cause an automatic write
set nrformats= " improves incrementing when there are leading 0's.
set cpo+=J " sentences are followed by 2 spaces.
set linebreak " wrapping preserves words
set linebreak " wrapping preserves words.

" ----------------------------------------------------------------------------
" UI
Expand Down Expand Up @@ -184,6 +184,7 @@ vnoremap p pgvy
nnoremap do jddk^
nnoremap dO kdd^

" Shortcut to make splits
nnoremap <leader>s :sp<cr><C-w>j
nnoremap <leader>v :vsp<cr><C-w>l
Expand All @@ -192,6 +193,9 @@ nnoremap <leader>v :vsp<cr><C-w>l
nmap <leader>c :sp ~/.vimrc<CR><C-W>_
nmap <leader>C :source $MYVIMRC<CR>:source $MYGVIMRC<CR>:filetype detect<CR><leader>d<leader>d<C-L>:exe ":echo 'vimrc reloaded'"<CR>
" Shortcut to easily edit a mail message.
nnoremap <leader>e :sp /tmp/duff_mail.mail<CR><C-W>_
" Remove trailing whitespace
nnoremap <leader>h :FixWhitespace<cr>
Expand Down

0 comments on commit ebf35df

Please sign in to comment.