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.
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:
You can configure this plugin using two options:
" Are valid options: 'default', 'emacs', 'friendly' and 'colorful' let g:rtfp_theme = 'emacs'
let g:rtfp_font = 'Monaco'
To highlight a file, simply use:
You can also specify the language to use on highlight with:
It also works on visual selections.
This Vim plugin is inspired at rtf-highlight plugin
Rafael Mendonça França (https://github.com/rafaelfranca)
MIT License. Copyright 2011 Rafael França