Ⅰ. 插件描述
Post to your Wordpress blog using VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'pothix/vimpress'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'pothix/vimpress'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'pothix/vimpress'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/pothix/vimpress
Ⅳ. 文档说明
Vimpress
Description
The original Vimpress was created by Adrien Friggeri and can be downloaded at the official vim page
This is a Willian Molinari (a.k.a PotHix) fork to add some new features.
Features
- Get a list of all articles
- Write a new article
- Edit a current article
- Save (yeah, no kidding)
- Supports categories
- Supports tags
- Supports multiple blogs
Commands
- :BlogList Lists all articles in the blog
- :BlogNew Opens page to write new article
- :BlogOpen <id> Opens the article <id> for edition
- :BlogSend Saves the article to the blog
- :BlogDefault Define the default blog using the <index> of the config file
- :BlogPreviewUrl Show the url of the post preview
Installation
I recommend using pathogem with a bundles directory, using git submodule to manage (like I'm doing in my config files),
but just copy all folders to your .vim folder will work as well.
Settings
Duplicate custom/configs.vim.example file and rename it to
custom/configs.vim file changing its content to your real settigs.
This is a comma separated line, with this informations:
a mark for default blog, login, password, URL for your xmlrpc.php file
License
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.