Last Updated: February 25, 2016
·
842
· chriskk

Sublime Text 2 - Key Bindings for Apple Bluetooth Keyboard on Ubuntu/*buntu

Are you using:

  • Ubuntu on your old MacBook
  • Apple Bluetooth Keyboard
  • Sublime Text 2

And want the Command key to work for you?

Start Sublime Text 2 and go to Preferences > Key Bindings - User, and the file Default (Linux).sublime-keymap will open up. Add these lines to get the Command key back.

[
        { "keys": ["super+n"], "command": "new_file" },
        { "keys": ["super+c"], "command": "copy" },
        { "keys": ["super+x"], "command": "cut" },
        { "keys": ["super+v"], "command": "paste" },
        { "keys": ["super+z"], "command": "undo" },
        { "keys": ["super+y"], "command": "redo" },
        { "keys": ["super+shift+z"], "command": "redo" },
        { "keys": ["super+s"], "command": "save" },
        { "keys": ["super+left"], "command": "move_to", "args": { "to": "bol" } },
        { "keys": ["super+right"], "command": "move_to", "args": { "to": "eol" } },
        { "keys": ["super+a"], "command": "select_all" }
]

References: