Update
Vimpress 已经升级到2.x版本,使用、配置都有改进,请关注在vim.org的插件页面:
Vimpress had been updated to 2.x, usage and configurations are now different, read the officle page in vim.org:
http://www.vim.org/scripts/script.php?script_id=3510
VimRepress is a broken fixed version of vimpress, a vim plugin to manage your wordpress. The name VimRepress is given by Justin Sattery described it a “A mod of a mod of a mod of Vimpress” which i like alot :) , who commented in my previous post together with some bug fixed code. Many thanks to Justin.
Features compared to the old vimpress:
BlogNew
command keep current buffer as post content.BlogUpload
command to upload images or other files.BlogList
command can be specify how many recent posts to list.BlogSave
command can save as draft, or just publish.BlogPreview
command works same as BlogSave, but open a browser for a preview page.BlogCode
command to append a code block of <pre> element for code highlight.
Download: From Google Code
SVN Version: http://ptcoding.googlecode.com/svn/trunk/vimpress/
Full Help Manual:
*vimpress.txt* Manage wordpress blog from Vim Vimpress Author: Adrien Friggeri <[email protected]> Preston M. [BOYPT] <[email protected]> ============================================================================== == Install == Download vimpress-1.x.x.zip, extract it in your .vim directory: cd ~/.vim unzip /where/you/downlaod/vimpress-1.x.x.zip == Configure == Edit ~/.vim/plugin/blog.vim, search "Settings", you will find such section: ##################### # Settings # ##################### blog_username = 'user' blog_password = 'pass' blog_url = 'http://yourblog.com' Fill in this about your blog, save, thats all. == Using Vimpress == Vimpress Commands: :BlogList [<count>] Lists articles in the blog, defaultly recent 30, use an arg. to specify. :BlogNew Open for a new post. Contents in current buffer will append in the post edit area. :BlogOpen <id> Open a post <id> for editing. :BlogSave <draft|publish> Saves the article, defaultly as draft, an arg. to specify. :BlogPreview <draft|publish> Same as :BlogSave, will open a browser to preview current post. You have to login in your browser to preview the draft post. :BlogUpload <file> Upload media file to blog. Appends img element after cursor. :BlogCode [<code type>] Append a section of a <pre> element, which could be hilighted by wp-syntax plugin. When give a code type, will fillin the element for syntax. |
发表评论