does not mean selecting words with the mouse and then querying in this way
/word
Instead, I want to use shortcut keys to quickly complete this operation.
Step1 endBy the way, how can I quickly copy the current word? Don't use the "v" and then slowly cross your way through it.
Instead, I want to quickly pick it up on the current word, so that I can query it immediately when opening other files.
Thank you for your enthusiastic replies, which make this question more valuable. Please post these two links in the question for future reference:
Press * or # on the word
Copy word: yiw
If you use * or # to search for a word, use n or N in another file
When the cursor is on the word, just press gD. There is no need to select the complete word first
Then jump via n/N
It is recommended that you learn the commonly used shortcuts in vim
http://wiki.wutianqi.com/vim/vim_shor...
I wrote this article based on a foreign article, you can check out the #Search section