I would like to search the word under my cursor. For this, I tried to press *
.
But, if the word I want to search is #foo
, as an example, vim only searches
word foo
(without hash), so it fails.
In fact, the #
is not considered in the word, which is confirmed when I try to
go to the next word with w
.
Do you know how I can search effectively #titi
by pressing *
on my keyboard?
iskeyword
consider this: how should all of the non-keyword characters that are fully or partially pattern atoms (i.e. they are special in a regex) be handled. Existing*
functionality doesn't need to worry about how to handle*
,?
,(
, etc. That functionality would need to be well defined.g*
instead of*
and continue jumping usingn
until I find what I am looking for.