Jumping back to a previously opened file in Vim

后端 未结 4 1230
予麋鹿
予麋鹿 2021-02-18 17:34

While using Vim I\'ll sometimes want to look at a function definition or a struct definition, so I\'ll use C-] to jump to it. However, there are a few problems I ru

4条回答
  •  北海茫月
    2021-02-18 18:17

    Add

    set hidden
    

    to you vimrc. It'll allow you switch files without saving them. I think this is one of 'must have' options.

    Use C-o to jump back to previous locations which were autosaved in a jumplist.

    :h jumplist
    

提交回复
热议问题