gvim: switching tabs with keyboard

前端 未结 4 1794
臣服心动
臣服心动 2021-01-30 13:01

I can\'t seem to find a predefined keyboard shortcut for switching between open tabs in Gvim. What is it, and if there is none, how can I define one?

4条回答
  •  忘了有多久
    2021-01-30 13:27

    I have these mappings in my vimrc:

    map  :tabprev
    map  :tabnext
    map  :tabnew
    

    I'm by no means a pro vim'er, but it works for me so I thought I'd share :) Control+Right for next tab, Control+Left for previous, Control+n to open a new tab (left out the so you can specify the path to open in the new tab).

提交回复
热议问题