Skip to content

Instantly share code, notes, and snippets.

@achiang
Created December 18, 2013 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achiang/8031596 to your computer and use it in GitHub Desktop.
Save achiang/8031596 to your computer and use it in GitHub Desktop.
Proper capslock behavior for Ubuntu / MacVim users
<?xml version="1.0"?>
<root>
<appdef>
<appname>MACVIM</appname>
<equal>org.vim.MacVim</equal>
</appdef>
<item>
<name>Caps to Control for MacVim only</name>
<identifier>private.macvimdef</identifier>
<block>
<only>MACVIM, VIRTUALMACHINE</only>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::CONTROL_L</autogen>
</block>
<block>
<not>MACVIM, VIRTUALMACHINE</not>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::COMMAND_L</autogen>
</block>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment