ctpaste-vim


Ⅰ. 插件描述

Paste to a CodeTrunk instance from vim

Ⅱ. 基本信息

创建日期:  2011-05-19
使用用户:  1
Github星:  1
插件作者:  Christopher Flynn

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is vimscript for CodeTrunk (http://code.google.com/p/codetrunk/)

Codetrunk is a pastebin type website.

Requirements:
Required python support compiled into vim as well as the mechanize library.

Configure:
You need to setup a pastebin server either in your ~/.bash_profile or in your ~/.vimrc

~/.bash_profile

export PASTEBIN='http://paste.example.com/'

~/.vimrc

let g:pastebin='http://paste.example.com/'

Also you can configure your name that shows up. This is only configured in your ~/.vimrc

let g:pastebin_user="vim plugin"

Useage:
Paste a selection of text/code:

:PasteCode
:PasteCodeM
:PasteCodeF

Paste the entire buffer:

:PasteFile
:PasteFileM
:PasteFileF

The default is to post for a day. The M and F suffixes allow you to post it Monthly and Forever respectively.

添加新评论