Skip to content

Instantly share code, notes, and snippets.

@seangaffney
Created September 22, 2016 18:20
Show Gist options
  • Save seangaffney/6b60bd7a56e4d0e5b402f6bf93329ea3 to your computer and use it in GitHub Desktop.
Save seangaffney/6b60bd7a56e4d0e5b402f6bf93329ea3 to your computer and use it in GitHub Desktop.
A Keyboard Maestro library to mimic Karabiner's vi Mode
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Author</key>
<string>Sean Gaffney</string>
<key>AuthorURL</key>
<string>http://seangaffney.cc</string>
<key>CanDragToMacroGroup</key>
<true/>
<key>Category1</key>
<string>Interface Control</string>
<key>Category2</key>
<string></string>
<key>Description</key>
<string>Inspired by Karabiner's vi Mode.</string>
<key>Items</key>
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>496241361.560974</real>
<key>Macros</key>
<array>
<dict>
<key>Actions</key>
<array>
<dict>
<key>KeyCode</key>
<integer>123</integer>
<key>MacroActionType</key>
<string>SimulateKeystroke</string>
<key>Modifiers</key>
<integer>0</integer>
<key>ReleaseAll</key>
<false/>
</dict>
</array>
<key>CreationDate</key>
<real>496241370.33278102</real>
<key>ModificationDate</key>
<real>496260896.831083</real>
<key>Name</key>
<string>vim h</string>
<key>Triggers</key>
<array>
<dict>
<key>FireType</key>
<string>WhileDown</string>
<key>KeyCode</key>
<integer>4</integer>
<key>MacroTriggerType</key>
<string>HotKey</string>
<key>Modifiers</key>
<integer>4096</integer>
</dict>
</array>
<key>UID</key>
<string>31457BD6-6F85-4E2E-81FE-4591C6DCB151</string>
</dict>
</array>
<key>Name</key>
<string>vim keys</string>
<key>ToggleMacroUID</key>
<string>17363C86-EFE6-45D0-81B1-41F764C3C6C4</string>
<key>UID</key>
<string>A8C6F9AC-18CE-4342-87EB-00C59AA2A3F6</string>
</dict>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>496241361.560974</real>
<key>Macros</key>
<array>
<dict>
<key>Actions</key>
<array>
<dict>
<key>KeyCode</key>
<integer>125</integer>
<key>MacroActionType</key>
<string>SimulateKeystroke</string>
<key>Modifiers</key>
<integer>0</integer>
<key>ReleaseAll</key>
<false/>
</dict>
</array>
<key>CreationDate</key>
<real>496241482.08725798</real>
<key>ModificationDate</key>
<real>496244429.89003497</real>
<key>Name</key>
<string>vim j</string>
<key>Triggers</key>
<array>
<dict>
<key>FireType</key>
<string>WhileDown</string>
<key>KeyCode</key>
<integer>38</integer>
<key>MacroTriggerType</key>
<string>HotKey</string>
<key>Modifiers</key>
<integer>4096</integer>
</dict>
</array>
<key>UID</key>
<string>7DC48C80-D375-4211-B3CB-BFB98B050B73</string>
</dict>
</array>
<key>Name</key>
<string>vim keys</string>
<key>ToggleMacroUID</key>
<string>17363C86-EFE6-45D0-81B1-41F764C3C6C4</string>
<key>UID</key>
<string>A8C6F9AC-18CE-4342-87EB-00C59AA2A3F6</string>
</dict>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>496241361.560974</real>
<key>Macros</key>
<array>
<dict>
<key>Actions</key>
<array>
<dict>
<key>KeyCode</key>
<integer>126</integer>
<key>MacroActionType</key>
<string>SimulateKeystroke</string>
<key>Modifiers</key>
<integer>0</integer>
<key>ReleaseAll</key>
<false/>
</dict>
</array>
<key>CreationDate</key>
<real>496241507.40935302</real>
<key>ModificationDate</key>
<real>496244432.36103398</real>
<key>Name</key>
<string>vim k</string>
<key>Triggers</key>
<array>
<dict>
<key>FireType</key>
<string>WhileDown</string>
<key>KeyCode</key>
<integer>40</integer>
<key>MacroTriggerType</key>
<string>HotKey</string>
<key>Modifiers</key>
<integer>4096</integer>
</dict>
</array>
<key>UID</key>
<string>585928DA-5637-40EF-8D0C-409B412B8AF7</string>
</dict>
</array>
<key>Name</key>
<string>vim keys</string>
<key>ToggleMacroUID</key>
<string>17363C86-EFE6-45D0-81B1-41F764C3C6C4</string>
<key>UID</key>
<string>A8C6F9AC-18CE-4342-87EB-00C59AA2A3F6</string>
</dict>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>496241361.560974</real>
<key>Macros</key>
<array>
<dict>
<key>Actions</key>
<array>
<dict>
<key>KeyCode</key>
<integer>124</integer>
<key>MacroActionType</key>
<string>SimulateKeystroke</string>
<key>Modifiers</key>
<integer>0</integer>
<key>ReleaseAll</key>
<false/>
</dict>
</array>
<key>CreationDate</key>
<real>496241534.47911501</real>
<key>ModificationDate</key>
<real>496244434.75560701</real>
<key>Name</key>
<string>vim l</string>
<key>Triggers</key>
<array>
<dict>
<key>FireType</key>
<string>WhileDown</string>
<key>KeyCode</key>
<integer>37</integer>
<key>MacroTriggerType</key>
<string>HotKey</string>
<key>Modifiers</key>
<integer>4096</integer>
</dict>
</array>
<key>UID</key>
<string>5162E58B-BA45-456C-982B-06765035FFD9</string>
</dict>
</array>
<key>Name</key>
<string>vim keys</string>
<key>ToggleMacroUID</key>
<string>17363C86-EFE6-45D0-81B1-41F764C3C6C4</string>
<key>UID</key>
<string>A8C6F9AC-18CE-4342-87EB-00C59AA2A3F6</string>
</dict>
</array>
<key>UID</key>
<string>32CEEFB1-0167-40E8-91D5-1E3604C0D9D4</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment