gq


Ⅰ. 插件描述

Multipurpose e-mail message beautifier

Ⅱ. 基本信息

创建日期:  2003-11-25
使用用户:  1
Github星:  2
插件作者:  Klaus Bosau

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

gq.vim provides shortcut "q", a variant on Vim's built-in beautifier
"gq" with enhanced e-mail support. Use it just as you'd use "gq" when
in Visual mode. - Features:

  • It's capable of dealing with lists being part of quotations.
       (Vim's 'comments' engine "gq" depends on can't do this.)
  • Quote marks may appear in conjunction with enclosed initials
       denoting the author's name.
  • It can perform basic tasks on malformed quoting-markup. (remove
       enclosed whitespace, reposition initials, convert badly wrapped

   lines)

  • It's configurable. (Have a look at gq.vim to see how this can be
       accomplished..)

A quote sample to illustrate how it works..

  > AB> > 1. qtqt qtqtq. qtqtqt qtqtqt qtqtq tqtqt tqqtt qtqt qtqt.
  > >AB > 2. qtqt qtqtq. qtqtqt qtqtqt qtqtq tqtqt tqqtt qtqt qtqt.
  >CD > - qtqt qtqtq qtqtqt qtqtqt qtqtq, tqtqt tqqtt qtqt qtqt.
  > CD> * qtqt qtqtq qtqtqt qtqtqt qtqtq, tqtqt tqqtt qtqt qtqt.
  > qtqt qtqtq qtqtqt. qtqtqt qtqtq tqtqt, tqqtt qtqt qtqt qtqt qt
  qtqt qtqtqt.

"Vipgq" (:setl fo=tcrqn ai com=n:>,fb:-,fb:* tw=36):

  > AB> > 1. qtqt qtqtq. qtqtqt
  > qtqtqt qtqtq tqtqt tqqtt qtqt
  > qtqt.
  > >AB > 2. qtqt qtqtq. qtqtqt
  > >qtqtqt qtqtq tqtqt tqqtt qtqt
  > >qtqt.
  >CD > - qtqt qtqtq qtqtqt qtqtqt
  >qtqtq, tqtqt tqqtt qtqt qtqt.
  >CD> * qtqt qtqtq qtqtqt qtqtqt
  >qtqtq, tqtqt tqqtt qtqt qtqt.
  >qtqt qtqtq qtqtqt. qtqtqt qtqtq
  >tqtqt, tqqtt qtqt qtqt qtqt qt
  qtqt qtqtqt.

"Vipgq" (:setl fo=tcrqn ai com=n:>,fb:-,fb:*,n:A,n:B,n:C,n:D tw=36):

  > AB> > 1. qtqt qtqtq. qtqtqt
  > AB> > qtqtqt qtqtq tqtqt tqqtt
  > AB> > qtqt qtqt.
  > >AB > 2. qtqt qtqtq. qtqtqt
  > >AB > qtqtqt qtqtq tqtqt tqqtt
  > >AB > qtqt qtqt.
  >CD > - qtqt qtqtq qtqtqt qtqtqt
  >CD > qtqtq, tqtqt tqqtt qtqt
  >CD > qtqt.
  > CD> * qtqt qtqtq qtqtqt qtqtqt
  > CD> qtqtq, tqtqt tqqtt qtqt
  > CD> qtqt.
  > qtqt qtqtq qtqtqt. qtqtqt qtqtq
  > tqtqt, tqqtt qtqt qtqt qtqt qt
  qtqt qtqtqt.

"Vipq" (:setl fo=tcqn ai com=n:>,fb:-,fb:* tw=36):

  AB>>> 1. qtqt qtqtq. qtqtqt qtqtqt
  AB>>>    qtqtq tqtqt tqqtt qtqt
  AB>>>    qtqt.
  AB>>> 2. qtqt qtqtq. qtqtqt qtqtqt
  AB>>>    qtqtq tqtqt tqqtt qtqt
  AB>>>    qtqt.
  CD>> - qtqt qtqtq qtqtqt qtqtqt
  CD>>   qtqtq, tqtqt tqqtt qtqt
  CD>>   qtqt.
  CD>> * qtqt qtqtq qtqtqt qtqtqt
  CD>>   qtqtq, tqtqt tqqtt qtqt
  CD>>   qtqt.
  > qtqt qtqtq qtqtqt. qtqtqt qtqtq
  > tqtqt, tqqtt qtqt qtqt qtqt qt
  > qtqt qtqtqt.

添加新评论