Monday, May 7, 2012

Re: Getting the value of runtimepath from the command line

On Mon, May 7, 2012 00:49, HarleyPig wrote:
> On Sunday, May 6, 2012 3:06:08 PM UTC-6, Gary Johnson wrote:
>> $ vim -E -c 'echo &rtp' -c 'q'
>
> That still leaves ansi escape codes in the output.

This works for me, doesn't leave any Ansi escapes codes around and
avoids temp files:

vim -Esc 'verbose echo &rtp|q'

I think the verbose is needed, because otherwise -s will silent out
all output (like the ANSI escape sequences and the echo message).

You might need to prevent messages from some plugins, e.g. here the
CSApprox plugin kept on complaining that the terminal had no colors
available (so I set --cmd 'let g:CSApprox_verbose_level=0' in the
command line.

regards,
Christian

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