I´m new to Vim and I want to use autohotkey to make it so that, if I open Vim on PowerShell, the Esc key is Remapped to the CapsLock key so that I can change from Insert to Visual Mode faster.
I tried running this script:
#HotIf WinActive('Title' 'ahk_class ConsoleWindowClass')
#HotIf WinActive('vim')
CapsLock::Esc
#HotIf WinActive
#HotIf WinActive
But it didn't seem to work.
<Esc>key in insert mode puts you back in normal mode, not visual mode.HotIfnotHotIf WinActivebut that could both work. So if that is not the issue, I would guess yourifsto not match...