> Use :exec
>
> exec "cmd ". arg
I'm using clientserver to control vim remotely, and the only two entry-
points are sending keys (I could send the command via simulated
typing), or eval-ing an expression. I do not have a way to run exec.
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
Sean
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php