On Mon, May 7, 2012 17:17, HarleyPig wrote:
> On Monday, May 7, 2012 8:18:13 AM UTC-6, Christian Brabandt wrote:
>> vim -Esc 'verbose echo &rtp|q'
>
> That gives me the same result as
>
> vim --cmd 'echo &rtp|q'
>
> Thanks for the hint to use |'s, makes the command so much easier to read.
>
> In both cases above, it appears the command is being run before config
> files are being sourced. I want to create html files for what the user
> has available in a normal session though, so any modifications to
> runtimepath by config files need to be accounted for.
Oh yes, this is briefly mentioned at :h -s-ex
Anyway, a workaround might be to explicitly source all configuration files,
e.g. something like
vim -u '$VIM/vimrc' -u ~/.vimrc -Esc 'verbose echo &rtp|q'
But this may trigger some file not found errors.
Most probably, vim -u ~/.vimrc -Esc 'verbose echo &rtp|q' should work
however.
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
Monday, May 7, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment