Saturday, March 3, 2012

Re: Alternating lines' color

On Fri, 2 Mar 2012 11:39:02 -0600
Benjamin Fritz <fritzophrenic@gmail.com> wrote:

>Script attached to make odd and even lines have a different background
>color. Simply source this script in your .vimrc and define a highlight
>for EvenLbg to use.


It would drive me nuts if applied to all buffers but dead useful if the
alternate line display could be toggled on/off for a particular buffer
or just a range.

Presumably, this could be turned into a plugin and dropped
in .vim/plugins.


Daft question re vim syntax:

func! s:ColorAltLines()
if exists('b:ALTLINES_disable') || exists('g:ALTLINES_disable')


What is the sifnificance of s:, b: and g: ? Could you point me to the
relevant manual page?
--

Best Regards,
Tarlika Elisabeth Schmitz

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

No comments: