vim-code2html


Ⅰ. 插件描述

convert code to html in vim to keep original format when pasting in OneNote or Word etc.

Ⅱ. 基本信息

创建日期:  2015-09-01
使用用户:  1
Github星:  1
插件作者:  Shawn Ding

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# code2Html
convert code to html in vim to keep original format when paste in OneNote or Word etc. Need vim built with +python support.

Installation

  • Pathogen

    • git clone https://github.com/chyxwzn/code2Html.git

Usage

Default

  • convert to html without line number

    • map <silent><leader>y :CodeToHtml<CR>
  • convert to html with line number

    • map <silent><leader>ny :NCodeToHtml<CR>

添加新评论