Use_Perl_from_vim

ethan on 2002-11-06T11:53:30

This might well be my last entry made through the HTML-form provided by use.perl.com (knocking on wood).

I have made quite a step towards finishing my little vim blogger. This little editor is really more than amazing. It can entirely be controlled programatically. I am even toying with the idea of writing a vim-news client backed by Perl.

Currently I just have to source in the actual vim-script, then hit F2 and it'll ask me for a user id and limit of entries to retrieve. Then it will split the window veritcally and place an index of the found entries in the upper window. That done I can scroll through the entries line wise and hit F3 when I have found the relevant entry. Afterwards, the entry will appear in the lower window. This took me just 160 lines of code, of which about 100 are placed in a Perl module and the rest is the vim-script which itselfs is mainly Perl-code calling the functions from my module.

Now I just have to add the means to hit F4 to submit a modified entry (if it has changed) and F5 for composing a new one. The only thing that can't be done is the preview.

See a screenshot [52kB] here.