diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 11:46:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 11:46:32 +1200 |
commit | 05282eb4f03dba38006344b566d4f22ba1689217 (patch) | |
tree | 70169da7c1b6020705d4916bc019e61e6152d7bf /vim/after/ftplugin | |
parent | Bump VERSION (diff) | |
download | dotfiles-05282eb4f03dba38006344b566d4f22ba1689217.tar.gz dotfiles-05282eb4f03dba38006344b566d4f22ba1689217.zip |
Add mappings to move through quoted mail blocks
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 2917425d..7c67987f 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -61,3 +61,11 @@ nnoremap <buffer> \ <LocalLeader>l \ <C-U>:call <SID>FlagUnimportant()<CR> let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>l' + +" Maps to move to the next blank line content-wise (i.e. quoted still counts) +nnoremap <buffer> <silent> <LocalLeader>[ + \ :<C-U>call search('\m^[ >]*$', 'bW')<CR> +nnoremap <buffer> <silent> <LocalLeader>] + \ :<C-U>call search('\m^[ >]*$', 'W')<CR> +let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>[' + \ . '|nunmap <buffer> <LocalLeader>]' |