On 07/05/10 20:43, surge wrote:
Gotcha. What I did was I avoided column numbers and switched to marks.
So, I mark the beginning of the "span" with a "a" mark and then do:

exe ":'<,'>s/\\%'a" . '<span class="\(.\{-}\)"' . '/<span class="\1
' . a:class_marker.l:diff . '"/'

Still don't know what /\%{column_number}v does. Anybody can point me
to the right place in the docs?  I think it's search starting at
column {column_number} and "v" has something to do with visual, but I
don't know what.

Thanks


        :help /\%v

It's "virtual", not "visual", meaning a column measured in screen cells. Just above it you see /\%c explaining that in a pattern, \%nnc (where nn is a number) means the column measured in bytes (from start-of-line, plus one since the begin of the line is column one not zero).


Best regards,
Tony.
--
The lion and the calf shall lie down together but the calf won't get
much sleep.
                -- Woody Allen

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

Reply via email to