vim have many things that the manual describe just as "search forward".
1. Search commands search-commands
/
/{pattern}[/]<CR> Search forward for the [count]'th occurrence of
{pattern} |exclusive|.
[...]
star E348 E349
* Search forward for the [count]'th occurrence of the
word nearest to the cursor. The word used for the
Yet, only the ones entered with the /
command will show up on the command history.
How can i have all the other "search" commands (*
, #
, g*
, gd
, etc) be part of a common history pool?
For example, let's say i am in a .c
file. I press * a few times to search some terms. Then I open the .h
file... now I can only search for the last term by pression n and there's no way to search for the previous ones I have just searched for! if i have searched then by using /
, then when moving files i could use /<UP>
and search for them again.
*
a word and then do/<up>
and make it show up.