Skip to content

adah1972/vim-copy-as-rtf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%