On Sat 25-Nov-06 1:40pm -0600, [EMAIL PROTECTED] wrote:
> What I want is similar to "evaluating a region" in emacs. I want to be
> able to make a selection of vim code, and then execute it.
>
> ":source" only takes files.
>
> As for ":exe", I have tried this: ":exe getreg('"')", and found it to be
> unreliable.
>
> Anyone have ideas?
I'm not familiar with emacs, but your question reads like
you want to visually select some text, yank it to a register
and source it.
If you yank it with just 'y' you will use the " register.
To source that type:
:@"
To read more:
:help :@
BTW, if each line of the text you are yanking starts with a
':', you can just execute the contents of the register with
the normal command '@"' (assuming the " register).
:help @
--
Best regards,
Bill