Thanks!  Just being a perfectionist, wanted to eliminate a step.  I'll
put in a feature request.

Sean

On Feb 8, 10:35 am, Matt Wozniski <[email protected]> wrote:
> On Sun, Feb 7, 2010 at 12:36 PM, Sean DeNigris wrote:
>
> > What I want to do is:
> > eval("some string that executes a command")
>
> > The only thing I've come up with is calling a function that calls exec
> > e.g.
> > eval("DoCommand('echo 5')")
>
> > function DoCommand(cmd)
> >  exec a:cmd
> > endfunction
>
> > But I wanted to know if there was a more direct/simple way
>
> As far as I know, the only way to call a command from an expression is
> through a function.  I think that your solution is just fine, though
> vimscript should probably provide a builtin function like this...
>
> ~Matt

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to