For the life of me, I cannot figure out why set relativenumber does not load when set in my .vimrc file. Other settings, like set number and setting the color scheme work perfectly. If I want relativenumber, I need to set it in the current buffer explicitly. Any ideas? My .vimrc can be found here:

https://github.com/mhamrah/vimfiles/blob/master/.vimrc

Thanks,

Mike

link|improve this question
feedback

1 Answer

up vote 6 down vote accepted

It's because you have :set number later in your .vimrc -- number and relativenumber are incompatible with one another. Take out that line.

link|improve this answer
Thanks, it worked! I had no idea they were mutually exclusive. I thought number turned on numbering while relativenumber made it relative. – mhamrah Jan 31 '11 at 1:06
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.