Vimpress !

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 tags1

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 : 409 times
    File : vimpress.tar.gz
    Size: 2.5 ko
    1. using this plugin []

39 Responses to "Vimpress !"

Friggeri.net : Archive : Vimpress ! says:

[...] English Version [...]

Fab says:

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

Swaroop says:

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? :)

Swaroop says:

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

Adrien Friggeri says:

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

yigal says:

this is really nice. thank you, very impressive

yigal says:

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.

yigal says:

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

El editor (act « (Parabol » Parabola) :: Nwiki-dev says:

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

MOVEQ #$07,d0 says:

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

MOVEQ #$07,d0 says:

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

Staz Blog » Testing Vim’s Wordpress Plugin says:

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

Mokawi says:

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

RAZU » Blog Archive » Calculatoristul says:

[...] 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 [...]

praytothemachine.com / Vim blogging plugin says:

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

Vim y Wordpress « ε-(-`· フ`) フー says:

[...] 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). [...]

Vimpress:使用 Vim 发布 WordPress 网志 | Alex's Station says:

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

eedoo » Vimpress:使用 Vim 发布 WordPress 网志 says:

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

Sailor123.Com » Vimpress:使用 Vim 发布 WordPress 网志 says:

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

CA-Networks Blog » Blog Archive » Vimpress, publish WordPress blog posts from Vim says:

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

Publishing a Blog in Vim with Vimpress « Helpful Linux Tidbits says:

[...] 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: [...]

Vimpress to edit/publish WordPress posts says:

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

disnetdev » Oh vim! says:

[...] 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 [...]

molok says:

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

:)

molok’s nest - Un altro passo verso la perfezione says:

[...] 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! [...]

HaHaGood says:

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

sefr0m says:

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

.log : Говорит Москва says:

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

.log : Гворит Москва says:

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

Manuel says:

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!

Manuel says:

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')

Le mpg-blog » Archives du blog » Wordpress à ma sauce (partie 1) says:

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

Lusule says:

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!

kapaneus says:

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!

daemonized blog » Archiv » Verschieben von Windows Updateservices Datenbank und Dateien says:

[...] 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 [...]

Leave a Reply