Is there a command in Vim/Vi to move the cursor to the end of a search highlight?

前端 未结 6 2071
粉色の甜心
粉色の甜心 2020-12-22 23:31

Are there any commands in Vim/Vi to move within a selected search segment?

For instance, if I search for a word, are there any commands to motion the cursor to the

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 23:54

    The "cursor at the end of the match" part of your question is already answered.

    You can do :%s/Fish/FishTaco/c. This gives you an opportunity to confirm or reject every substitution and skip the whole "cursor at the end of the match" business.

提交回复
热议问题