How to effectively work with multiple files in Vim

前端 未结 28 2675
甜味超标
甜味超标 2020-11-28 00:18

I\'ve started using Vim to develop Perl scripts and am starting to find it very powerful.

One thing I like is to be able to open multiple files at once with:

<
28条回答
  •  清酒与你
    2020-11-28 00:26

    You may want to use Vim global marks.

    This way you can quickly bounce between files, and even to the marked location in the file. Also, the key commands are short: 'C takes me to the code I'm working with, 'T takes me to the unit test I'm working with.

    When you change places, resetting the marks is quick too: mC marks the new code spot, mT marks the new test spot.

提交回复
热议问题