Dear All,

This mail does not poertains to me. Please mark the same to right
person.

Thanks and Regards
Om Prakash Singh | Asst. Manager |Kotak Mahindra Bank Ltd.
5/27, Vishal Khand, Gomtinagar, Lucknow 226010 | D: (0522) 4151910 | M:
(+91) 9936250828
 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Gary Johnson
Sent: Saturday, December 26, 2009 1:38 PM
To: vim_use
Subject: Re: cursorline/cursorcolumn highlighting

On 2009-12-25, Bee wrote:
> On Dec 24, 9:17 pm, Gary Johnson <[email protected]> wrote:
> > You might be interested in
> >     :set {option}!
> >     :set inv{option}
> 
> I know about them, but did not know the 'reset'.
>   :se[t] {option}&
> 
> I had been using:
>   :nmap <silent>  <F7> :set cursorline!<cr>
>   :nmap <silent> ,<F7> :set cursorcolumn!<cr>
> 
> But decided that I wanted to cycle 1-4 with ONE key and to learn 
> something new:
> 1) off
> 2) cursorline
> 3) cursorcolumn
> 4) both cursorline and cursorcolumn
> 
> How can LiCo() be made buffer local?
> 
> let s:lico=0
> function LiCo()
>   let s:lico=s:lico>2 ?0 :s:lico+1
>   let &cursorline=s:lico % 2
>   let &cursorcolumn=s:lico / 2
> endfun
> 
> I tried b:lico in place of s:lico, it did not work.

That's odd.  I just tried your function with b:lico and it worked fine
for me:  each call to LiCo() advanced the state of the cursor highlights
as you described.  I only tried it with one buffer.

Regards,
Gary


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php


DISCLAIMER:
This communication is confidential and privileged and is directed to and for 
the use of the addressee only. The recipient if not the addressee should not 
use this message if erroneously received, and access and use of this e-mail in 
any manner by anyone other than the addressee is unauthorized. The recipient 
acknowledges that Kotak Mahindra Bank may be unable to exercise control or 
ensure or guarantee the integrity of the text of the email message and the text 
is not warranted as to completeness and accuracy. Before opening and accessing 
the attachment, if any, please check and scan for virus.

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to