From 85fcf8657436b742b4211b66fbf1ffd481677f80 Mon Sep 17 00:00:00 2001 From: rcmdnk Date: Sun, 29 Sep 2024 00:09:43 +0900 Subject: [PATCH] feat: add new bindings for period, ZZ, and ZQ in Vim mode --- lib/bind/vim_normal.ahk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/bind/vim_normal.ahk b/lib/bind/vim_normal.ahk index c44f9c2..43a2807 100644 --- a/lib/bind/vim_normal.ahk +++ b/lib/bind/vim_normal.ahk @@ -22,8 +22,14 @@ u::SendInput("^z") A_Clipboard := ClipSaved } +; period +.::SendInput("+^{Right}{BS}^v") + +; Z mode +z::Vim.State.SetMode("Z") #HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Z")) + +; ZZ +z:: { SendInput("^s") @@ -31,15 +37,13 @@ u::SendInput("^z") Vim.State.SetMode("Vim_Normal") } +; ZQ +q:: { SendInput("!{F4}") Vim.State.SetMode("Vim_Normal") } -; period -.::SendInput("+^{Right}{BS}^v") - ; Q-dir #HotIf Vim.IsVimGroup() and WinActive("ahk_group VimQdir") and (Vim.State.Mode == "Vim_Normal") ; For Q-dir, ^X mapping does not work, use !X instead.