Switch between tabs in Sublime Text Vintage Mode

2019-03-29 06:17发布

I know we can achieve this in VIM using nerdtree and gT and gt commands. But is there any way to achieve similar kind of behaviour in Sublime Text Vintage Mode?

3条回答
我欲成王,谁敢阻挡
2楼-- · 2019-03-29 06:54

Installing Vintageous on ST3 will give you much more than the default Vintage package provides.

查看更多
姐就是有狂的资本
3楼-- · 2019-03-29 07:13

I don't think Vintage mode has these bound to gt, gT or anything but Ctrl+Tab and Ctrl+Shift+Tab do exactly the same thing as gt and gT, whether you are in Vintage mode (INSERT or NORMAL) or not.

You know, there is a very easy way to find the shortcuts used by an application: just look at the menu bar. That's what I did for you and it took less than 30 seconds.

查看更多
看我几分像从前
4楼-- · 2019-03-29 07:16

Or (for posterity), you can just paste this in your keymap file:

{ "keys": ["g", "t"], "command": "next_view",
    "context":
    [
        { "key": "setting.command_mode", "operand": true },
        { "key": "setting.is_widget", "operand": false }
    ]
},

{ "keys": ["g", "T"], "command": "prev_view",
    "context":
    [
        { "key": "setting.command_mode", "operand": true },
        { "key": "setting.is_widget", "operand": false }
    ]
},
查看更多
登录 后发表回答