Friday, May 7, 2010

Re: enclosing a word with a tag with dynamic parameters.

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

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