Skip to content

Instantly share code, notes, and snippets.

@BlenderSleuth
Created August 9, 2024 01:53
Show Gist options
  • Save BlenderSleuth/c7d380aea782cbf8db1c5e70b07d3aa0 to your computer and use it in GitHub Desktop.
Save BlenderSleuth/c7d380aea782cbf8db1c5e70b07d3aa0 to your computer and use it in GitHub Desktop.
MinimalVimMovementExtend
; 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