Skip to content

Instantly share code, notes, and snippets.

@hylander0
Created January 24, 2014 21:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hylander0/8607290 to your computer and use it in GitHub Desktop.
Save hylander0/8607290 to your computer and use it in GitHub Desktop.
This is a Private.xml file for KeyRemap4MacBook. This custom key remapping definition remapps Windows key combinations (Ctrl-C Ctrl-V, etc) on a Mac.
<?xml version="1.0"?>
<root>
<item>
<name>Use PC Style Undo</name>
<appendix>(Control+Z to Command_L+Z)</appendix>
<appendix>(Except in Vi, Terminal, VM, RDC, Emacs, X11)</appendix>
<identifier>remap.undo_winstyle_no_term_vi_firefox</identifier>
<not>VI, EMACS, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TEAMVIEWER, X11</not>
<autogen>--KeyToKey-- KeyCode::Z, VK_CONTROL, KeyCode::Z, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Select All</name>
<appendix>(Control+A to Command_L+A)</appendix>
<appendix>(Except in Vi, Terminal, VM, RDC, Emacs, X11)</appendix>
<identifier>remap.select_all_winstyle_no_term_vi_firefox</identifier>
<not>VI, EMACS, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TEAMVIEWER, X11</not>
<autogen>--KeyToKey-- KeyCode::A, VK_CONTROL, KeyCode::A, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Save</name>
<appendix>(Control+S to Command_L+S)</appendix>
<appendix>(Except in Vi, Terminal, VM, RDC, Emacs, X11)</appendix>
<identifier>remap.save_winstyle_no_term_vi_firefox</identifier>
<not>VI, EMACS, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TEAMVIEWER, X11</not>
<autogen>--KeyToKey-- KeyCode::S, VK_CONTROL, KeyCode::S, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Find</name>
<appendix>(Control+F to Command_L+F)</appendix>
<appendix>(Except in Vi, Terminal, VM, RsDC, Emacs, X11)</appendix>
<identifier>remap.find_winstyle_no_term_vi_firefox</identifier>
<not>VI, EMACS, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TEAMVIEWER, X11</not>
<autogen>--KeyToKey-- KeyCode::F, VK_CONTROL, KeyCode::F, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Copy/Paste Custom</name>
<appendix>(Control+C to Command_L+C)</appendix>
<appendix>(Control+V to Command_L+V)</appendix>
<appendix>(Control+X to Command_L+X)</appendix>
<appendix>(Except in Vi Terminal, VM, RDC, Emacs, X11, Eclipse)</appendix>
<identifier>remap.copy_paste_winstyle_no_term_vi_firefox</identifier>
<not>VI, EMACS, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, X11, ECLIPSE</not>
<autogen>--KeyToKey-- KeyCode::C, VK_CONTROL, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::V, VK_CONTROL, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::X, VK_CONTROL, KeyCode::X, ModifierFlag::COMMAND_L</autogen>
</item>
<!-- <replacementdef>
<replacementname>PC_STYLE_BINDINGS_IGNORE_APPS</replacementname>
<replacementvalue>
VIRTUALMACHINE,
REMOTEDESKTOPCONNECTION,
VNC,
EMACS,
TERMINAL,
X11,
VI,
</replacementvalue>
</replacementdef>
<replacementdef>
<replacementname>PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION</replacementname>
<replacementvalue>
(Except in Virtual Machine, RDC, VNC, EMACS, TERMINAL, X11, VI)
</replacementvalue>
</replacementdef>
<item>
<name>PC_STYLE_BINDINGS_IGNORE_APPS has been overwritten.</name>
</item> -->
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment