copy-as-rtf


Ⅰ. 插件描述

Copy syntax-highlighted code from vim to the OS X clipboard as RTF text

Ⅱ. 基本信息

创建日期:  2011-07-28
使用用户:  61
Github星:  113
插件作者:  Nathan Witmer

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/zerowidth/vim-copy-as-rtf

Ⅳ. 文档说明

# vim-copy-as-rtf

This plugin provides a CopyRTF command for OS X systems that copies the
current buffer or selected text to the clipboard as syntax-highlighted RTF text.

This plugin was inspired by the
rtf-highlight plugin, but only
uses commands available by default on OS X and an HTML conversion plugin that
ships with vim.

Requirements

  • OS X
  • The :TOhtml plugin, which ships with vim and is enabled by default

Installation

Use pathogen and clone this repo to
~/.vim/bundle.

Usage

When the plugin is loaded, the following command is available:

:CopyRTF

It operates on either the current buffer or the currently selected text. After
the command executes, the RTF text will be available on the system clipboard.

For customization of how the text is generated, see the vim documentation for
the :TOhtml command.

添加新评论