I often use * to highlight all instances of the current word, and the fact that it advances to the next word is quite annoying. I would like to disable this behavior, knowing that I can always use "n" if I really need to move forward.
Any insight?
EDIT: I have to add that I would like to avoid redrawing the screen at all costs, as it is visually distracting.
Try the following:
nnoremap * :let @/ = "\\<<C-R><C-W>\\>"<CR>
(, 'hlsearch'). ( \< \> ). hlsearch, . n n .
'hlsearch'
\<
\>
hlsearch
n
:
:help :let-@ :help quote/ :help c_CTRL-R_CTRL-W
Vim. . , .
, Vim Tip , .vimrc, , Vim .
.vimrc
...
nnoremap * '*N'
( )
Source: https://habr.com/ru/post/1795717/More articles:Memcache with Symfony / Doctrine - reloading data - phpInfoPath won't let me customize forms for a list - formsHow to create an instance of ControlTemplate in XAML? - wpfHow to print values from JSON Type Object for console in C # - jsonBinding a ListBox to Interface Properties in Silverlight - data-bindingP4.NET - How to specify user workspaces? - c #Does anyone know the "Wiki Known Issues" for WP7 - c #SimpleXMLElement и предупреждение: тип недопустимого смещения - arraysstore image in main data - core-dataWhat is the difference between bcpow and pow? - phpAll Articles