On 29/03/13 05:41, PARK, Kyung-Kook wrote:
> What I am trying to do is to set the path variable to something derived from the path of user vimrc file given by -u option so that I can customize vimrc files for different projects. But the thing is that $MYVIMRC or $MYGVIMRC is empty when vimrc is given via -u or -U option. They are correctly set when vim is invoked normally. If I am doing it in wrong way, is there any other correct way?
>
When using -u, most other initializations are skipped. In particular,
the 'compatible' option is not reset the way it would be if a vimrc (not
exrc) had been found by looking it up in the usual places. I think that
$MYVIMRC being unset when using -u is to be expected.
If you need $MYVIMRC set you can set it yourself:
(Unix, with bash)
MYVIMRC=/foo/bar/baz.vim vim -u $MYVIMRC filename.ext
(Windows, with cmd.exe)
set MYVIMRC=C:\foo\bar\baz.vim
vim -u %MYVIMRC% filename.ext
set MYVIMRC=
Best regards,
Tony.
--
Here is the problem: for many years, the Supreme Court wrestled with
the issue of pornography, until finally Associate Justice John Paul
Stevens came up with the famous quotation about how he couldn't define
pornography, but he knew it when he saw it. So for a while, the
court's policy was to have all the suspected pornography trucked to
Justice Stevens' house, where he would look it over. "Nope, this isn't
it," he'd say. "Bring some more." This went on until one morning when
his housekeeper found him trapped in the recreation room under an
enormous mound of rubberized implements, and the court had to issue a
ruling stating that it didn't know what the hell pornography was except
that it was illegal and everybody should stop badgering the court about
it because the court was going to take a nap.
-- Dave Barry, "Pornography"
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment