Sublime Forum

Keymap - More than one command in a shortcut?

#1

Hi,

I’m trying to switch to ST2 completely (from gVim & HippoEdit on Windows).

I’m used to create new lines in gVim with shift+enter when I’m in command mode.

Is it possible to create shortcut commands, that contain more than one command to achieve this behavior in ST2?

Something like this:

{ "keys": "shift+enter"], "command": "enter_insert_mode", "command": "insert", "args": {"characters": "\n"}, "command": "exit_insert_mode" }

Or is there any better way to do this?

Tia,
Highend

0 Likes

#2

Try “ctrl+enter” or “ctrl+shift+enter” (if you are on Windows). This should do what you want.

0 Likes

#3

Thanks senzo,

both shortcuts (yes, I’m on Windows) are working fine.

Regards,
Highend

0 Likes