Created
August 9, 2024 01:53
-
-
Save BlenderSleuth/c7d380aea782cbf8db1c5e70b07d3aa0 to your computer and use it in GitHub Desktop.
MinimalVimMovementExtend
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
; Setup environment | |
#Requires AutoHotkey v2.0 | |
#Warn ; Enable warnings to assist with detecting common errors. | |
; CapsLock as a layer modifier key | |
A_HotkeyModifierTimeout := 100 ; prevents sticking of layer key | |
; CapsLock is turned off, can be toggled with CapsLock + Esc | |
SetCapsLockState "AlwaysOff" | |
CapsLock & Esc::{ | |
if GetKeyState("CapsLock", "T") { | |
SetCapsLockState "AlwaysOff" | |
} else { | |
SetCapsLockState "AlwaysOn" | |
} | |
KeyWait "Esc" | |
return | |
} | |
#HotIf GetKeyState("CapsLock", "P") | |
; The symbols are: ! = Alt, ^ = Ctrl, + = Shift | |
h::Left | |
j::Down | |
k::Up | |
l::Right |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment