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

前端 未结 7 833
佛祖请我去吃肉
佛祖请我去吃肉 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:39

    Ctrl+O takes me to the previous location. Don't know about location before the search.

    Edit: Also, `. will take you to the last change you made.

提交回复
热议问题