Giter Club home page Giter Club logo

gq's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=829

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.

gq's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

optionalg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.