Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Syntax Highlighting to RTF for vim
VimL
Tree: 2c417da02c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
plugin
MIT-LICENSE
README.md

README.md

RTF Pygmentize

This plugin is used to syntax highlight pieces of code to RTF and it automatically copies it to the OSX clipboard. This was basically done to scratch an itch while building my keynote presentations.

This plugin is basically a wrapper around pygments library.

Dependencies

For now, this plugin only works on MacOS X but I would be grateful if someone make it works in others systems

To use it we need the pygments library. To install use the easy_install package manager with:

easy_install pygments

Configuration

You can configure this plugin using two options:

" Are valid options: 'default', 'emacs', 'friendly' and 'colorful'
let g:rtfp_theme = 'emacs'

and

let g:rtfp_font = 'Monaco'

Usage

To highlight a file, simply use:

:RTFPygmentize

You can also specify the language to use on highlight with:

:RTFPygmentize <lang>

It also works on visual selections.

Inspiration

This Vim plugin is inspired at rtf-highlight plugin

Maintainers

Rafael Mendonça França (https://github.com/rafaelfranca)

License

MIT License. Copyright 2011 Rafael França

Something went wrong with that request. Please try again.