tumblr-vim


Ⅰ. 插件描述

VIMScript that allows you to post regular type posts to Tumblr.

Ⅱ. 基本信息

创建日期:  2012-08-13
使用用户:  2
Github星:  4
插件作者:  sonesuke

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'sonesuke/tumblr-vim-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'sonesuke/tumblr-vim-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'sonesuke/tumblr-vim-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# tumblr.vim
Script that allows you to post regular type posts to Tumblr.

Install

Install python rauth package:

$ pip install rauth

Get an Tumblr's OAuth key: register an application.
They are required to enter for the first post.

If you are a Vundle user:

  1. run :BundleInstall sonesuke/tumblr-vim within Vim
  2. add Bundle 'sonesuke/tumblr-vim' to your Vundle powered .vimrc

Features

  • Begin a new post by opening a buffer and using the :TumblrNew command.
  • when finished use the :TumblrPost command.

For the first post, you will need to enter CONSUMER KEY and CONSUMER SECRET.

Requrements

Compiling Vim with +Python is required.
It can be confirmed by :echo has('python') == 1.

Acknowledgements

This plugin is based on Travis Jeffery's script and nihitok's gist.

添加新评论