USAGE
A quoted email is determined either by:
- lines prefixed with ">" (one, or multiple for nested quotes)
- an optional email separator, e.g.
-----Original Message-----
and the standard
From: <Name>
optionally followed by other header lines.

Move around email quotes of either:
- a certain nesting level, as determined by the current line; if the cursor is
not on a quoted line, any nesting level will be used.
- the range of lines from the "From: <Name>" mail header up to the line
preceding the next email separator or next mail header.

]] Go to [count] next start of an email quote.
][ Go to [count] next end of an email quote.
[[ Go to [count] previous start of an email quote.
[] Go to [count] previous end of an email quote.

Move to nested email quote (i.e. of a higher nesting level as the current
line; if the cursor is not on a quoted line, any nesting level will be used).

]+ Go to [count] next start of a nested email quote.
[+ Go to [count] previous start of a nested email quote.

INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
vim mail_movement*.vmb.gz
:so %
To uninstall, use the :RmVimball command.

The commands and text objects are only active when 'filetype' is set to
"mail". If you use Vim as an external editor for your browser or email
program, you need to make sure that the filetype is properly detected, or
manually set the filetype every time via
:setf mail
If you want to use this plugin also for other filetypes, e.g. "txt", create a
file ftplugin/txt_movement.vim in your 'runtimepath' (usually ~/.vim) with the
following contents:
runtime! ftplugin/mail_movement.vim

- ENH: ][ mapping in operator-pending and visual mode now also operates over / select the last line of the quote. This is what the user expects.
- Adapted to changed interface of CountJump.vim; now requires version 1.30.