Is there a plugin or way for me to alternate the background color for each line in vim?
Previously I'd found vim-zebra but this looks really ugly:
I'd prefer the whole line to be colored, not just a part of it.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
It is possible using my plugin DynamicSigns. Quoting from the README:
2.7 Alternating colors
You can also set up the plugin to color the lines in your buffer in alternating colors. To do so, set the g:Signs_Alternate variable in your |.vimrc| like this:
:let g:Signs_Alternate = 1
This will display each even line nummer in one color and each odd line number in a different color.
Run :UpdateSigns or :Signs to update displaying the signs in your buffer.