memo.xight.org

日々のメモ

KeyRemap4MacBook を利用して vim と ターミナルでCommandとCtrlを入れ替える

Summary

/Users/username/Library/Application\ Support/KeyRemap4MacBook/private.xml
<?xml version="1.0"?>
<item>
	<name>KeyRemap4MacBook Developer</name>
	<list>
		<item>
			<name>MyKeyMap</name>
			<list>
				<item>
				<name>Command_L to Control_L (only VI, Terminal, Virtual Machine, RDC)</name>
				<identifier>private.command_l_to_control_l_only_viterm</identifier>
				<only>VI, TERMINAL, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
				<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::CONTROL_L</autogen>
				</item>
			</list>
		</item>
	</list>
</item>


Reference

KeyRemap4MacBook 日本語マニュアル
http://pqrs.org/macosx/keyremap4macbook/document.html.ja

private.xml Reference Manual
http://pqrs.org/macosx/keyremap4macbook/xml.html