In vim, how do I go back to where I was before a search?

前端 未结 7 832
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 17:07

Programming in vim I often go search for something, yank it, then go back to where I was, insert it, modify it.

The problem is that after I search and find, I need to MA

7条回答
  •  既然无缘
    2021-01-29 17:51

    Use `` to jump back to the exact position you were in before you searched/jumped, or '' to jump back to the start of the line you were on before you searched/jumped.

提交回复
热议问题