Shortcut to open file in Vim

前端 未结 19 1104
误落风尘
误落风尘 2020-12-22 16:30

I want to open a file in Vim like in Eclipse using Ctrl + Shift + R, or via the Ctrl + N option of autofill. Invoke a

19条回答
  •  一个人的身影
    2020-12-22 16:47

    This isn't exactly what you're looking for, but it's good in many cases (though not all).

    If you VIM open and there's a name of a file in the buffer, you can put the cursor on that filename and type gf. This opens the file whose name is under the cursor in the same buffer. It's the same as

    :e CTRL+r CTRL+w

提交回复
热议问题