Monday, May 7, 2012

Re: Getting the value of runtimepath from the command line

On Monday, May 7, 2012 3:13:00 AM UTC+12, HarleyPig wrote:

> That did it, though I was hoping to avoid temp files.

A challenge left hanging... I foolishly took the bait, though I'm not claiming success, such inelegance as follows cannot be termed such.

One can do this with coprocess trickery, if you have bash version 4:

coproc vim 10>&1- &>/dev/null -c 'exe "!echo \"" . &rtp. "\" >&10"' -c q
read -u${COPROC[0]} rtp
eval "exec ${COPROC[1]}<&-"

Regards, John

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