If I correctly understood OP, current symbol != all words that are the same as 
the one under cursor (i.e. local variable in one function is different symbol 
from the local variable in another function, even if it has the same name). 
Thus what is needed, given positions in a list of three-tuples of (lnum, col, 
len) is constructing the regex like this:

    let regex='\v'.join(map(copy(positions), 
'"%".v:val[0]."l%".v:val[1]."c.{".v:val[3]."}"'), '|')
. This assumes length is given it terms of characters, but column is byte 
offset. Then this regex may be used in your function.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui