Favourite places in vim

前端 未结 5 1303
逝去的感伤
逝去的感伤 2021-02-08 13:44

Is there a command in vim that can bookmark a place (path to the file, line number in that file), so that I can go to that place easily later?

It would be s

5条回答
  •  甜味超标
    2021-02-08 14:39

    Yes you can do so with the 'mark' command. There are two types of bookmarks you can create, local and global. You are referring to a global bookmark.

    You can type 'mP' to create a bookmark called P. Notice the case, uppercase indicates it is a global bookmark. To go to that bookmark, type `P.

    Hope this helps

    Source

提交回复
热议问题