On Feb 5, 2008 9:13 PM, Steve Hall <digitect@dancingpaper.com> wrote:

>
>
>
> On Mon, 2008-02-04 at 22:22 -0500, Dave (My-IOP) wrote:
> > Hi - newbie here. I need help using WoC in Cream.
> >
> > I want to have URLs (hyperlinks) in plain text docs. I believe
> > WoC-Vim can provide this. How do I use it with Cream? I'm reading
> > the docs and my head is spinning.
> >
> > I would like to have a simple text file with something like this in
> > it that will open the URL in my browser:
> >
> > Here is a link I want to jump to:
> > {-http://cream.sourceforge.net/-}
>
> I just committed an update that might help, copy this file over yours
> of the same name:
>
>  http://cream.cvs.sourceforge.net/cream/cream/cream-lib.vim
>
> It works if you select a URL and press Ctrl+Enter, or without a
> selection as long as the link has a char on either side that Vim does
> not define as a filename character by &isfname (:help 'isfname). (The
> link format you give above is not valid however. :)

Hi Steve,
I tested it and this works great. Thanks!

I think I want to go one step further and tweak it to recognize a URL if it includes "www." but not "http://". Do you have any tips to get me started? I've never worked with vim scripts before. Is the follow code all I would have to change (around line 1559)?

"if     match(myfile, "http://", 0) == 0
"    let isURL = 1
"elseif match(myfile, "www.", 0) == 0
"    let isURL = 1

One of my next tasks is to integrate gpg with Cream. I have found some examples of how to do that with Vim. Will they work with Cream too? Does Cream already have some support for gpg built in that I'm not aware of?

Thanks for your help.
Dave