hi

I have a function like this:

     function! template(text)
        " Do something with the text and return the result

What I would like to do now is to be able to press a key let say F5 in
visual mode and the text that I have selected should be passed into the
text variable of the template function.

Is this possible? I don't want to have to manually yank the text before
I pass it.

If it is not possible I could write a wrapper function, but how do I get
hold of the text that is selected?

Thanks in advance


Preben

Reply via email to