Friday, July 29, 2011

Assign the result of a COMMAND to a variable

I wonder if it is possible to assign the result of a command to a variable like so (not working):

let [var] = [command]

(where [command] stands for an arbitrary command producing output, like e.g. ls].


--
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:

Post a Comment