rtf_pygmentize


Ⅰ. 插件描述

Syntax Highlighting to RTF for vim

Ⅱ. 基本信息

创建日期:  2011-11-06
使用用户:  14
Github星:  27
插件作者:  Rafael França

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Vim RTF Pygmentize

Suppose you will write a presentation using Keynote and need to convert chunks of code to Keynote without losing
syntax highlighting. This plugin helps you with that: it converts pieces of code to RTF and copies it to
the OSX clipboard.

It is basically a wrapper around the pygments library, and was created to
help me adding chunks of code to my Keynote presentations.

Dependencies

Right now this plugin only works on OS X, but I would be grateful if someone make it work in
another systems.

Before installing the plugin, you need to install the pygments library. You can do it with the following command:

easy_install pygments

Configuration

There are two available options to configure this plugin:

" Valid options are: 'default', 'emacs', 'friendly' and 'colorful'
let g:rtfp_theme = 'emacs'

You can use the vim2pygments project to generate more themes to pygments using your vim themes.

and

let g:rtfp_font = 'Monaco'

Usage

To highlight a file, you can use:

:RTFPygmentize

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

:RTFPygmentize <lang>

It also works with 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

添加新评论