Vimpress !

2007
13
Jul

This is quite experimental (and unmaintained): I'm currently writing this article using the only decent text editor: Vim. That's why I wrote a plugin inspired by this one

Presentation

Vimpress is a nifty plugin for Vim which allows you to publish and edit posts on your wordpress blog.

Features
  • Get a list of all articles
  • Write a new article
  • Edit a current article
  • Save (yeah, no kidding)
  • Supports categories
  • Supports tagsa

Pseudo help

Commands
  • ":BlogList"
    Lists all articles in the blog
  • ":BlogNew"
    Opens page to write new article
  • ":BlogOpen id"
    Opens the article for edition
  • ":BlogSend"
    Saves the article to the blog
  • Configuration

    Edit the "Settings" section (starts at line 51). If you wish to use UTW tags, you should install the following plugin and set "enable_tags" to 1

    Just fill in the blanks, do not modify the highlighted parts and everything should be ok.

    Downloaded : 831 times
    File : vimpress.tar.gz
    Size: 2.5 ko
    1. using this plugin []

tags

53 comments

VImpress : Very Impressive :)
Reste juste à faire la version SimpleTagging…

I don't understand French, but have you considered adding your plugin to http://www.vim.org/scripts/ so that many more people can find and use your plugin? :)

Oops, looks like you already have! Sorry for the noise.

No problem. :)
By the way, you have an english description of the plugin over here

this is really nice. thank you, very impressive

there seems to be a problem. i cannot edit a post but i can post a new one and use tags. i don't know if you have the time or can help me but if you could i would appreciate it.

i opened the file:
1. :BlogOpen #

2. edited the file

3. :BlogSend

but it does not change the post no matter how many times I send it.

It was a PHP error in version 5.2.2, the version my host is using. I used the fix and can now blog perfectly with vim. Thank you

[...] PD: Escribiendo este post directamente desde VIM [...]

[...] kleine Plugin Vimpress ermöglicht es, Wordpress-Einträge mit dem Vim [...]

[...] kleine Plugin Vimpress ermöglicht es, Wordpress-Einträge mit dem Vim zu [...]

[...] is very late and I am writing this post from inside vim using the vimpress plugin. I am able to [...]

Intense. Je dirais même libérateur, puisque sous mac, j'étais constamment forcé de faire appel à de l'artillerie lourde.

[...] telefonul. Nu mă interesează cine este, descarc un plugin proaspăt descoperit pentru vim. În acelaşi timp instalez şi ce are nevoie. Telefonul sună din [...]

[...] switched to vimpress as my blogging [...]

[...] Publicado en vim by Felipe Morales on Febrero 7th, 2008 Para mi delicia, he descubierto este plugin que permite editar blogs en wordpress usando Vim, mi editor favorito (el único que me ha gustado). [...]

[...] Vim 使用者,而碰巧又在通过 WordPress 发布网志的话,那么,一定不要错过 Vimpress。Vimpress 是一个 Vim 插件,利用该插件,你可以直接从 Vim [...]

[...] Vim 使用者,而碰巧又在通过 WordPress 发布网志的话,那么,一定不要错过 Vimpress。Vimpress 是一个 Vim 插件,利用该插件,你可以直接从 Vim [...]

[...] Vim 使用者,而碰巧又在通过 WordPress 发布网志的话,那么,一定不要错过 Vimpress。Vimpress 是一个 Vim 插件,利用该插件,你可以直接从 Vim [...]

[...] habe gerade vimpress installiert. Mit diesem kleinen feinen vim plugin kann man aus dem vim heraus wordpress blog [...]

[...] Vimpress is a plugin for Vim that allows editing and added posts to Wordpress blogs. Vimpress also will list the posts written to easily go back and edit them. Blogging is as simple as BlogList, BlogNew, BlogOpen and BlogSend. Installation is easy enough, just put the blog and syntax file in their respective folders: [...]

[...] is very impressive. With Vimpress, you can publish/edit Wordpress blog posts from within Vim. This brings together my favorite editor [...]

[...] be honest I've become even more enamored with vim since finding vimpress which is allowing me to write and post this entry to my wordpress blog all in vim! Now that's [...]

Well, this is supercool. Thanks for the effort you put on this.
protip: if you put this two lines, right before the last line of the syntax file, you can have syntax highlight for the content:
syntax include @html syntax/html.vim
syntax region html start=/^"========== Content ==========/ skip=/.*/ end=/.*/ contains=@html

:)

[...] Insomma, fatto sta che mi sono ritrovato a leggere questo vecchio post su come utilizzare Markdown con Vim e magicamente anche con Wordpress. Il link allo script nel post sembra essere morto, ma grazie ai poteri della blogosfera e dell'antani, ho trovato una più che valida alternativa: Vimpress! [...]

It is seems that vimpress can't work in windows. I can use it in Ubuntu perfectly. But in windows, I failed.

when i try to post to my blog i get this error msgs

Traceback (most recent call last):
File "", line 1, in
File "", line 77, in blog_send_post
File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py", line 1335, in _parse_response
p.feed(response)
File "/usr/lib/python2.5/xmlrpclib.py", line 547, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: junk after document element: line 2, column 0

[...] vimpress & PHP Markdown: 1. italic 2. bold 3. [...]

[...] vimpress & PHP Markdown. [...]

It's wonderful! I've started a wordpress blog yesterday and after editing just two post I understood I wouldn't be able to live with the online wordpress editor. Thank you so much for this vim plugin!

I only have one problem: when I try getting one post with :BlogOpen, I get only the part before the sign. Have you any idea how I can avoid this problem? I would search it myself but unfortunately I don't speak python nor php… Currently I just refrain from using the sign.

Thanks again!

Oh by the way, reading again my last post, I realise that:
- html is interpreted in the comment, so you didn't see some part of my message: please read "the <!–more–>" sign" instead of "the sign" everywhere (this is the default sign used by wordpress to separate the short content from the rest of teh content)
- I forgot to post back: finally you don't need to know PHP nor Python to read or patch it. So I propose the following patch that allows to use a tag of your choice to separate short content from the rest. I chose &more; as a separator instead of the default cause it's easy to see with my vim colors, but you can use whatever you want. Here is the proposed patch (hope I escaped it enough for html):

59d58
< more_mark = '&more;'
107,113c106
< parts = text.split(more_mark)
< if len(parts) == 1:
< content = parts[0]
< content_more = "
< else:
< content = parts[0]
< content_more = parts[1]

> content = text
119d111
< 'mt_text_more': content_more,
127d118
< 'mt_text_more': content_more,
182,184d172
< content_more = (post["mt_text_more"]).encode("utf-8")
< if content_more != ":
< content = content + more_mark + content_more
187d174
< vim.command('%s/\\n\('+more_mark+'\)\\n/\\1/e')

[...] 5 minutes d'essai/combat, j'ai plutôt rapidement trouvé le Nirvana, sous la forme de vimpress, un plugin [...]

This plugin is brilliant! I'm new to Linux, Vim, Wordpress, Blogging, the lot (I like to dive in at the deep end) but I found this really makes editing and uploading blog posts a breeze!

Thanks!

Hello, thanks for your great plugin. I made a patch which

Support post slug
Add argument for BlogList, default to 10, 0 to list all posts

patch link: http://joyus.org/pub/vimpress-0.9-slug-and-listcount.patch.txt

Thanks,
Matt

Thanks a lot, this great plugin helps me save time and lets me concentrate on the stuff I'm writing, not on the writing itself.

But still one thing: The terminal that I use vim with is usually bigger than needed so I prefer to use a lower textwidth than there are columns. Hence there's an LF at the end of every line that is treated by wordpress.com not as ordinary whitespace (as in html) but as linebreak. So I end up adding all the lines of paragraph together before I BlogSend.

Could you at least add an option to the blog.vim file that automagically strips the LFs and only treats blank lines (two LFs in a row) as linebreak?

Anyways, vimpress is great and I'll continue using it, thank you very much!

[...] Services"-Dienst usw. Einfach mal probieren. Ich empfehle vorher ein Backup Edit: Vimpress fetzt aber man sollte schon damit umgehen können Veröffentlicht von antic_eye [...]

[...] This entry is posted from vim through VimePress. No Comments, Comment or [...]

[...] Vimpress in ein Plugin-Verzeichnis (zB. ~/.vim/plugins) entpacken, Settings anpassen und mit :BlogNew loslegen und einem finalen :BlogSend übermitteln. [...]

[...] recently found a vim plug-in for Wordpress. Vimpress allows your to write and edit your blog posts directly from vim. Sure it has its limitations. There [...]

The people in such cases, said so – Avos will be alive, maybe pomrem.

[...] off, in fact, because of the aforementioned. I'm writing this post in macvim, using the vimpress plugin. It's barebones—it's got a New command, a Send command, a List command and [...]

[...] lo pueden bajar de la página de su autor, y, como todo plugin de vim, lo único que tienen que hacer es descomprimirlo en su [...]

Hi,

I like the idea of your plugin but unfortunately it does not work correct for me. I start a new blog post with :BlogNew, type in my content, set a title, modifiy the Cats and leave Tags blank. Then I run :BlogSend. But only the title and the cats are send to my blog. The content is missing. Maybe you can give me a hint what I am doing wrong. I am using vim 7.1 and wordpress 2.5.1.

Thanks a lot and best regards,

Michael

[...] anderen hat vimpress aus heiterem Himmel zu funktionieren aufgehört; ins Blaue hinein vermutend, würde ich dies auf [...]

[...] all went away with Mephisto (I couldn't get XMLRPC to work properly). So, I'm trying Vimpress. Hopefully, I won't need to hack together Ultimate Tag Warrior into Wordpress 2.8 to get [...]

[...] test was brought to you by: Ubuntu Linux, gVim, Vimpress (Vim blogging plugin), and the letter C. C is for cookie, and that's good enough for [...]

[...] have just discovered Vimpress which is a plugin for vim, a great text editor which I have been using/learning for the last few [...]

[...] enter vimpress a Vim plugin that lets you post to a WordPress blog with Vim. How awesome is [...]