Jumping back to a previously opened file in Vim

后端 未结 4 1232
予麋鹿
予麋鹿 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:16

    You might want to consider using a few vim extensions that make this even simpler.

    lusty-juggler and lusty-explorer

    http://www.vim.org/scripts/script.php?script_id=2050 http://www.vim.org/scripts/script.php?script_id=1890

    These require that vim was built with +ruby.

    % vim --version | grep +ruby
    

    They're very useful for staying in vim and jumping between files.

提交回复
热议问题