Last active
June 26, 2018 09:17
-
-
Save alexmaze/570b58c8708e9a4466df1eeb6b311e99 to your computer and use it in GitHub Desktop.
AutoHotkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Key Mappings | |
LCtrl::RCtrl | |
CapsLock::LCtrl | |
LAlt::LWin | |
LWin::LAlt | |
RAlt::~ | |
RCtrl::CapsLock | |
\::Backspace | |
Backspace::\ | |
; =========================== | |
; notice: key mapping will not affect blow definations | |
; Vim style Up, Down, Left and Right | |
<^h::Send, {Left Down}{Left Up} | |
<^k::Send, {Up Down}{Up Up} | |
<^j::Send, {Down Down}{Down Up} | |
<^l:: | |
{ | |
Send {Right Down}{Right Up} | |
} | |
return | |
; Mac style Save, Copy, Undo, Cut, Paste and Select All | |
<!s::Send, {Ctrl Down}{s}{Ctrl Up} | |
<!c::Send, {Ctrl Down}{c}{Ctrl Up} | |
<!z::Send, {Ctrl Down}{z}{Ctrl Up} | |
<!x::Send, {Ctrl Down}{x}{Ctrl Up} | |
<!v::Send, {Ctrl Down}{v}{Ctrl Up} | |
<!a::Send, {Ctrl Down}{a}{Ctrl Up} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment