Vimrepress Having Big Changes (Updated Beta Version)

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


Hi guys, glad to know that many of you are having vimpress forked to improved it’s power, while i’m also doing the same thing.

I’m working on a version that had been refactored a lot, changes include:

  • Commands simplified. No more BlogPageNew/BlogPageSave commands anymore, managing pages are available via the argument to the original BlogNew/BlogList commands, Meta fields shows you what kind of post you’re editing.

  • Much better Markdown integrated. No more MarkdownXXX commands. You can decide what you edit (Markdown or HTML) in the meta field, when execute BlogSave or BlogPreview, program parse the meta field to got things done.

  • More easier editing wordpress in Markdown. Markdown rawtext will automaticly uploads as an attachment file. Updating a post before is complicated, now after you write a post in markdown in vimpress, and then want to do some update, just open the post in Vimpress, it downloads the attachment and show you your original markdown text, when you BlogSave again, the attachment also got updated for further editing.

This version of vimpress is not yet released, for i’m still debuging, i just finished all this features past few days. If any of you got interested, go to my svn:

svn checkout http://ptcoding.googlecode.com/svn/trunk/vimpress-dev

I separated python code from blog.vim to avoid my coding editor got confused about python syntax, i’ll combine them together when final release, if you want to try now, got to change the last line about the python file in “blog.vim”.

Now this version is now available as beta, you may try it for now:

https://bitbucket.org/pentie/vimrepress/downloads/vimpress_2.1.0beta_r34_179c33a255c7.zip

I would like to hear any advices from you.

By the way, the document attached is not yet updated, the commands list below are “legle” in the new version, you would find them easy to use:

The document attached is now updated, you may refer to it about the new usage, which are all simplified and powerfied, command examples:

  • :BlogList – List 30 recent posts.
  • :BlogList page – List 30 recent pages.
  • :BlogList post 100 – List 100 recent posts.

  • :BlogNew post – Write an new post.

  • :BlogNew page – Write an new page.

  • :BlogSave – Save (defautely published.)

  • :BlogSave draft – Save as draft.

  • :BlogPreview local – Preview page/post locally in your browser.

  • :BlogPreview publish – Same as `:BlogSave publish’ with brower opened.

  • :BlogOpen 679

  • :BlogOpen http://your-first-blog.com/archives/679
  • :BlogOpen http://your-second-blog.com/?p=679
  • :BlogOpen http://your-third-blog.com/with-your-custom-permalink
文章分类 Python, Vim 标签: , ,
5 comments on “Vimrepress Having Big Changes (Updated Beta Version)
  1. Auston_Jary说道:

    刚用这个就更新了~

  2. Conner说道:

    Hey Preston, I’ve added a few changes and updated the documentation at https://github.com/connermcd/VimRepress

  3. VimRepress Lover说道:

    Dear Perston, I’m using VimRepress 2.1.5 andI got the error message “xmlrpc error: Could not write file vimpress_xxxxxxxx_mkd.txt (Invalid file type)” after executed :BlogSave. If I changed EditFormat to HTML, the article can be saved successfully. Thank you.

    • Bafu说道:

      If you’re using wordpress.com, its media library doesn’t support .txt attachments. Here is a workaround:

      1. open blog.vim
      2. modify “vimpress_%s_mkd.txt” to “vimpress_%s_mkd.odt”

      Enjoy it.

    • BOYPT说道:

      That’s true, wordpress.com has a limitation on attachments.

      But I invite u to use the 3.0 version of vimpress, I change the storage from attached .txt to the database via the api, and many code rewritted.

      This version supports wordpress.com fully.

      https://bitbucket.org/pentie/vimrepress/

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*