sponsor Vim development Vim logo Vim Book Ad

YAPosting : Yet Another Posting script

 script karma  Rating 24/6, Downloaded by 1078  Comments, bugs, improvements  Vim wiki

created by
Bernard PRATZ
 
script type
utility
 
description
This script was designed in order to have a simple but reliable, comprehensive and reusable set of mappings, functions and syntax in order to improve the Mailing and Posting edition. It does 'clean' the quotes in the mail (removes empty quoted lines, condense quote signs and remove signature), it changes Microsoft Outlook Express quote header to a standard quote header and put the quote where it belongs, it can remove quoted or not quoted paragraphs and it can reformat your text into a justified text inside margins.

The script has been totally rewritten for version 2.0, with a python backend written  from scratch to replace the Perl Text::Format module.

Now the main page of this script is: https://github.com/guyzmo/vim-yaposting

To install it, the script is Vundle/Pathogen ready.
        
NB: This script offers a similar, yet different way to Justify a text than : vimscript #177

Have fun!
 
install details
You need to have vim compiled against Python >=2.6 installed.
You can install it by adding Bundle('guyzmo/vim-yaposting') in your vimrc, if you use Vundle.
Otherwise, the python module in pylibs shall go to your python path accessible from vim, and the vimscript file to ~/.vim/ftplugin/mail/
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
yaposting_v2.tar.gz 2 2013-03-19 7.2 Bernard PRATZ * rebuilt from scratch
* switched to python backend
* updated script for best Vundle compatibility
* improved formatting features
yaposting.vim 0.2 2011-04-18 6.0 Bernard PRATZ * Added support for utf-8 encoded characters for the justify format feature
* Added '<Lead>n' shortcut to add "cut here" marks :
-----8<-----8<-----
----->8----->8-----
* Verified support for vim >7 (verified with 7.1) but shall work with older vims.
TODO
* Need to be improved to be more vim script compliant (better use of <Lead>, of function declaration, use of range etc...)
* Need to have better support of typographic rules (don't add spaces around quotes for example when justifying the text)
* Need to improve OE quote fixing rules...
yaposting.vim 0.1 2004-04-07 6.0 Bernard PRATZ Initial upload
ip used for rating: 18.116.90.141

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github