You are not logged in.

#1 2015-07-06 17:37:05

Xemerau
Member
Registered: 2011-08-06
Posts: 6

vim colourscheme changed after update, ignoring ~/.vimrc [Solved]

In a similar vein to this issue, after updating to vim 7.4.764-1 my vim colourscheme has changed to the default. However, I've specified a few alterations in my ~/.vimrc that seem to be being ignored. Interestingly the lines

:hi LineNr ctermfg=9

and

:hi CursorLineNr ctermfg=10

still seems to be being executed as the line numbers are the correct colour.

Both this and the fact that the highlighting line removed by

:hi clear CursorLine

had returned made me think that the highlighting syntax may have changed, but after sourcing my vimrc I found that this was not the case. I've also attempted to pass my vimrc upon loading vim with the -u flag, which causes the colours to be set correctly seems to insert a tab before each of the line numbers.

Does anyone know what's causing this issue or how to work around it outside of manually sourcing ~/.vimrc everytime vim is run?

Last edited by Xemerau (2015-07-06 19:47:42)

Offline

#2 2015-07-06 18:15:44

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: vim colourscheme changed after update, ignoring ~/.vimrc [Solved]

I also suggest to send your issue report upstream maillist https://groups.google.com/forum/#!forum/vim_dev


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2015-07-06 19:39:23

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: vim colourscheme changed after update, ignoring ~/.vimrc [Solved]

I run my own colour scheme that I defined in vimrc itself, and I inserted a

color default

right before I started defining the colours, and it worked.

However I have no clue why this solves the issue - I guess that if that line is not present, vim considers no colour scheme to be loaded at the end of sourcing the vimrc, and just loads one as "default", thereby overriding whatever colour definitions were done by yourself - I may also be wrong.


pkgs │ hacks │ cfg │ blag

Offline

#4 2015-07-06 19:47:23

Xemerau
Member
Registered: 2011-08-06
Posts: 6

Re: vim colourscheme changed after update, ignoring ~/.vimrc [Solved]

thanks ayekat, that's solved the issue.

Offline

Board footer

Powered by FluxBB