Thursday, November 10, 2011

Re: can I do command substitutions in vimscript?

Excerpts from ninjaaron's message of Thu Nov 10 23:24:13 +0100 2011:
> In bash, I can do something like this:
> foo=`cat bar`

let foo=system('cat bar')
or let foo = join(readfile('bar'),"\n") # lookup binary options

> I want to use the cat command to assign a value in my vimrc. I'm sure this
> is possible, but I can't figure it out.
Why do you want to use cat? ..

Marc Weber

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: