更新时间:2022-03-06 22:11:08
实际上在Mac上使用vim 7.2,星号搜索完全可以正常工作
Actually using vim 7.2 on Mac, star search exactly works as you would like it to do.
编辑:检查您的'iskeyword'(:set iskeyword)设置为什么,因为星号搜索基于此选项来查找单词搜索词。
Check what your 'iskeyword' (:set iskeyword) is set to because star search is based on this option to find the word search term.
或者,您可以使用'g *'(:help gstar)来部分搜索光标位于上方的单词。
Alternatively, you could could use 'g*' (:help gstar) to get a partial search for the word the cursor is over.
希望这会有所帮助。