53959Re: Using internal-variables in regexp
- Oct 3, 2004Dnia niedziela, 3 października 2004 05:11, V.Chandrasekaran napisał:
> Hi Dave,Look one item lower in docs.
> Here is what I am trying to do. This basically came to my mind after
> tip#769 http://www.vim.org/tips/tip.php?tip_id=769 . I wanted to
> highlight a line and keep it highlighted for reference till I
> voluntarily turn it off or choose
> some other line for highlighting. That tip suggests usage of \%# which
> with every cursor movement and so doesn't serve this purpose (If I had
> that tip correctly). So I was thinking if we fixed the syntax match
> pattern to the output
Get number of line and highlight line with \%<number>l
It should be faster and NULL problems with escaping special characters.
:exe 'match MyLine /\%'.thisline.'l.*/'
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim-list(s) Users Map: (last change 17 Sep)
CLEWN - http://clewn.sf.net
- << Previous post in topic Next post in topic >>