On Wed, 3 May 2006, Max Dyckhoff wrote:

I've Googled and Yahooed my way around the web trying to find the answer
to this to no avail, so I thought I would query this potential gold mine
of information.

I would really love a way to be able to select a line, or a range of
lines, press a button and have them highlighted in a different manner,
perhaps with a yellow bg instead of black. I'm not new to scripting vim
by any means, but I really can't figure out a way to do this. I suspect
it is going to require a per-buffer variable to store the line numbers
that I want highlighted, and then some :highlight command, but I can't
for the life of me work it out. Or is there some way to make it
highlight marked lines differently, I imagine that would work too.
[snip]

Max,

Give mark.vim a try:

  http://www.vim.org/scripts/script.php?script_id=1238

HTH.
--
Gerald

Reply via email to