Thursday, July 31, 2014

Re: color scheme changes on vimrc file save

On Thursday, July 31, 2014 8:13:33 AM UTC-5, Eric Patton wrote:
>
> Yes, my vimrc does source itself, with this command:
>
> autocmd! bufwritepost .vimrc source $MYVIMRC
>
> It occurs almost at the end of my vimrc; where do you think it should appear?
>

Unless you made a very concerted effort to do so, there are likely some portinos of your .vimrc which don't work very well when they run a second time.

Perhaps your colorscheme itself doesn't work well when it runs a second time.

Perhaps you override the 'background' option in your .vimrc somewhere.

Perhaps you have autocmds left over from the last startup, that aren't being cleared out.

Perhaps there is a plugin interfering.

I think your best bet is the generic debug method:

1. Try without plugins, if problem goes away, binary search your plugins by removing half at a time and repeating to find the culprit.
2. Try without .vimrc. If problem goes away, binary search .vimrc by removing stuff or putting a "finish" about halfway through and repeating until you narrow down the problem line(s).

--
--
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/d/optout.

No comments: