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 articlefor 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.
36 Responses to "Vimpress !"
[...] English Version [...]
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 [...]
[...] 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 [...]
[...] vimpress的主页 [...]
[...] vimpress的主页 [...]
[...] 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!
[...] another vimpress [...]
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 [...]
Leave a Reply