YAPosting


Ⅰ. 插件描述

Yet Another Posting Script reborn – Helper that gives a few formatting features for mail/news posting.

Ⅱ. 基本信息

创建日期:  2004-04-07
使用用户:  2
Github星:  5
插件作者:  Bernard PRATZ

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Mail formatting plugin for vim

How to install

the easiest way, via Vundle:

  • add Bundle 'guyzmo/vim-yaposting' in your .vimrc
  • resource your .vimrc and
  • executes BundleInstall

otherwise, you already know how to install a vim plugin.

Features

  • TakeOut: it is used to remove a quoted paragraph. Either you remove the quoted paragraph the cursor is on, or you remove the visual selection.
  • Reformat: it is used to reformat current paragraph (or selection) to justified text with configurable values of alinea, indent and width
  • CleanReply: it is used to reformat the whole quoted text (or selection) to be justified and correctly ordered (fixes top replies)
  • OE Quote fix: it is used to reformat a ill-formatted mail (like from outlook or gmail). Still experimental.
  • Increase Quote level: increases quote level of current line or selection
  • Decrease Quote level: decreases quote level of current line or selection
  • Highlight: hilights all text that is wider than defined settings
  • CutHere: inserts a quote block with given markers, or put current selection between markers (useful for code citation)

How to configure

  • mappings

    • let g:yaposting#takeout (defaults to <Leader>mt"): TakeOut feature
    • let g:yaposting#reformat (defaults to <Leader>mr"): Reformat feature
    • let g:yaposting#oequotef (defaults to <Leader>mm"): OE Quotefix feature
    • let g:yaposting#cleanrep (defaults to <Leader>mc"): CleanReply feature
    • let g:yaposting#cleanreu (defaults to <Leader>m<UP>"): Increase Quote Level feature
    • let g:yaposting#cleanred (defaults to <Leader>m<DOWN>"): Decrease Quote Level feature
    • let g:yaposting#highligh (defaults to <Leader>mh"): Highlight feature
    • let g:yaposting#cuthere (defaults to <Leader>mn"): CutHere feature
  • mail formatting values

    • let g:yaposting#marginleft (defaults to 0): used as a margin for text reformatting
    • let g:yaposting#marginright (defaults to 8): used as a warn margin for highlights
    • let g:yaposting#textwidth (defaults to 80): used as a limit for text reformatting
    • let g:yaposting#alinea (defaults to 4): used as alinea for text reformatting
  • patterns

    • let g:yaposting#QuoteExpr (defaults to >'): Used to match and insert quotes
    • let g:yaposting#TakeOutExpr (defaults to […]): Used to replace a taken out quote paragraph
  • cut here markers

    • let g:yaposting#CutHereBeg (defaults to --------8<----------------8<----------------8<---------------8<--------')
    • let g:yaposting#CutHereEnd = (defaults to -------->8---------------->8---------------->8--------------->8--------')

License

(c)2013, Bernard Guyzmo Pratz, guyzmo at m0g dot net

Even though it is a WTFPL license, if you do improve that code, it's great, but if you
don't tell me about that, you're just a moron. And if you like that code, you have the
right to buy me a beer, thank me, or flattr/gittip me.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
Version 2, December 2004 

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> 

Everyone is permitted to copy and distribute verbatim or modified 
copies of this license document, and changing it is allowed as long 
as the name is changed. 

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

0. You just DO WHAT THE FUCK YOU WANT TO.

添加新评论