Thursday, August 10, 2017

My colorscheme is messed-up but only if I edit a perl .pl file. Help!

I am using Vim 7.4 through a remote PuTTY session. I set my "dracula" colorscheme in my vimrc, and then immediately after that, I remove the background setting for normal text. For Normal text, I personally prefer a solid (empty) black background to the background color that the dracula colorscheme uses. Here is the relevant code from my vimrc:

colorscheme dracula
hi Normal ctermfg=231 ctermbg=NONE cterm=NONE

This works when I edit an HTML or text or JavaScript file, but if I edit a Perl file, the dracula colorscheme's default background is used instead. If I type :verbose hi Normal, it says "Last set from ~/.vim/bundle/vim-dracula/colors/dracula.vim" So it appears the colorscheme file is getting sourced twice: once during the normal loading of the .vimrc and another time later on. Unfortunately the :scriptnames command only shows the first time a file gets sourced. How do I find what is causing the dracula.vim file to be sourced again?

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

Post a Comment