Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ethan (3163)

ethan
  reversethis-{ed. ... rap.nov.olissat}

Being a 25-year old chap living in the western-most town of Germany. Stuying communication and information science and being a huge fan of XS-related things.

Journal of ethan (3163)

Wednesday November 06, 2002
06:53 AM

Use_Perl_from_vim

[ #8792 ]

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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.