Thursday, 5 September 2013

Vim highlight similar including special characters

Vim highlight similar including special characters

Pressing shift + * will highlight similar words in vim, however, word
seems to be the part of a string up to the next special character. So, if
my marker is on the s of
'the-string-I-want-to find'
it would highlight all instances of 'string' in the file.
Is there a way that I can do the same but instead of searching for the
subset, it searches for the whole string 'the-string-I-want-to find'?

No comments:

Post a Comment