mail_movement


Ⅰ. 插件描述

Movement over email quotes with ]] etc.

Ⅱ. 基本信息

创建日期:  2010-08-03
使用用户:  1
Github星:  1
插件作者:  Ingo Karkat

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/mail-movement'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/mail-movement'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/mail-movement'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/mail_movement

Ⅳ. 文档说明

DESCRIPTION
This filetype plugin provides movement commands and text objects for email
quotes.

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.

aq                      "a quote" text object, select [count] email quotes, i.e.
                        - contiguous lines having at least the same as the
                          current line's nesting level
                        - one email message including the preceding mail
                          headers and optional email separator
iq                      "inner quote" text object, select [count] regions with
                        either:
                        - the same nesting level
                        - the contents of an email message without the
                          preceding mail headers

添加新评论