> When I present source code, it is easier if I use cursorline/
> cursorcolumn highlighting to direct eyes to the relevant section.
>
> I wanted a function key to turn on and off the highlighting, but did
> not want to dedicate more than one of those valuable resources. So...
> in this example F7 cycles thru the cursorline and cursorcolumn
> highlighting.
>
> For Vim versions older that 7, it only moves the line to the center of
> the screen.
>
> I am somewhat new to Vim scripting, please comment or suggest
> improvements.
You might be interested in
:set {option}!
:set inv{option}
either of which will toggle the value of {option}. See
:help E518
and skip to the fourth paragraph down.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment