Created
September 9, 2014 01:52
-
-
Save cycold/571c612a9fcf9058ca5a to your computer and use it in GitHub Desktop.
autoKey
This file contains hidden or 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
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a | |
; semicolon, such as this one, are comments. They are not executed. | |
; This script has a special filename and path because it is automatically | |
; launched when you run the program directly. Also, any text file whose | |
; name ends in .ahk is associated with the program, which means that it | |
; can be launched simply by double-clicking it. You can have as many .ahk | |
; files as you want, located in any folder. You can also run more than | |
; one ahk file simultaneously and each will get its own tray icon. | |
; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it | |
; launches a web site in the default browser. The second is Control+Alt+N | |
; and it launches a new Notepad window (or activates an existing one). To | |
; try out these hotkeys, run AutoHotkey again, which will load this file. | |
#z::Run www.autohotkey.com | |
;^!n:: | |
;IfWinExist Untitled - Notepad | |
; WinActivate | |
;else | |
; Run Notepad | |
;return | |
;Vim Key Binding | |
if ( A_Cursor = "IBeam" or A_CaretX >= 100 ) | |
{ | |
^j:: send {down} | |
^h:: send {left} | |
^k:: send {up} | |
^l:: send {right} | |
^0:: send {home} | |
^!k:: send {pgup} | |
^!l:: send {pgdn} | |
^o:: send {end}{enter} | |
^!o:: send {home}{enter}{up} | |
;!x:: send {del} | |
;^!X:: send +{end}{del 2} | |
;!d:: send +^{left}{del} | |
; ^!d:: send {home}{shift down}{end}{shift up}{del 2} | |
return | |
} | |
; Note: From now on whenever you run AutoHotkey directly, this script | |
; will be loaded. So feel free to customize it to suit your needs. | |
; Please read the QUICK-START TUTORIAL near the top of the help file. | |
; It explains how to perform common automation tasks such as sending | |
; keystrokes and mouse clicks. It also explains more about hotkeys. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment