vim


Vimafarian

24 Feb 2009
Posted by acrollet

So in an earlier post, I complained about vimperator not being available for Safari. Well, like anyone else that's completely nuts would do, I decided to pull myself up by my own bootstraps and have a go. You may find (and install) my limited but functional beginnings here.

Posted by acrollet

Decided I was tired of having to manually go and look at my posts after I was done writing them... This latest version will open the post under your cursor in your default browser when you type 'o'. whoo! Tested and working on mac os x, could be dodgier on linux/windoze - leave a comment if you have trouble...

Posted by acrollet

Found a nice post on this kind of stuff here. I haven't implemented all of it by any means, but the omnifunc code completion and snippetsEmu are quite nice. Also did my own hacky perversion of the :make command.

Posted by acrollet

Thanks to a suggestion on an earlier post, I decided to extend the infamous VIM blogging client to all content types. It now comes with the capability to edit pages and stories by default, and it's easily extendible to other content types. (though you're restricted to editing the title and body, it won't do custom fields!) I suppose this would make the version number something like 0.03-rc2? Here's the (by now) de rigeur screenshot:

Posted by acrollet

I've made a few improvements to my Drupal blogging client, first spoken about here. It now has the ability to publish and unpublish posts, delete posts, and create and edit free tags (folksonomy). The free tagging feature requires a module that I've packaged up for parsing tags in the post body - just waiting on permission from the author of the sample code I modified before posting that. Hopefully it'll be coming soon!

Posted by acrollet

So, we are finally getting closer to the long-awaited post (ha!) about posting to drupal from vim. I've been having a lot of fun making this plug-in suit my needs, and making it truly easy to post. Python hasn't been too hard to learn - vim scripting is truly a weird, weird language.

Anyway, here is a (very) rough draft of the plugin. If you want to use it, place it in your ~/.vim/plugin/ directory. You will need to apply add1sun's patch from http://drupal.org/node/224006 to make the blog API work basically at all, and you'll need my patch from http://drupal.org/node/243907 for file/image uploads to work. Tagging isn't working quite right yet - I made kind of a hacky patch, but I think I'm going to have to re-think my approach and make a module for that...

quick usage summary:

  • :ListPosts 5 will display a (extremely) minimal browser with the 5 most recent posts. (You can modify the number of posts to suit, or leave it off, and it will get the 10 most recent posts)

This is a test entry

04 Apr 2008
Posted by acrollet

I'm posting this from vim with a plugin taken from yyhh.org. If you can read this, it's working ;-)
Update: My modifications are coming along - the following image was uploaded from Vim...

more testing