No ideal way to search for the word under the cursor and remain stationary. #24285
otakutyrant
started this conversation in
General
Replies: 1 comment 8 replies
-
You don't need a plugin, just use this mapping:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See Vim: search and highlight but do not jump. In past, I do not want
*
jump immediately so I installed a plugin to disable it. Many years passed, now I wonder there is still no official solution available.In restrospect, the document of
*
says: Search forward for the [count]'th occurrence of the word nearest to the cursor. So I tried0*
to expect search for the word under the cursor and remain stationary. By instinct, zeroth occurence comes before before the first one, and that is exactly the word itself under the cursor. Unfortunately, it still jumps, behaving like1*
or*
.Beta Was this translation helpful? Give feedback.
All reactions