   return
 
 <^r::
-  send #r
+  ; vim: redo
+  if is_terminal()
+    ; FIXME (himkt): %A_ThisHotKey%
+    send ^r
+  else
+    send #r
   return
 
 <#s::

#UseHook


is_not_terminal()
{
  ifWinActive,ahk_exe WindowsTerminal.exe
    return 1

SetKeyDelay 0


; Mac-style commands (Win + {key})

; cursor
^a::
  if is_terminal()
    send %A_ThisHotKey%
  else
    send {HOME}
  return

<#a::
  send ^a
  return

^b::
  if is_terminal()
    send %A_ThisHotKey%
  else
    send {Left}
  return

<#b::
  if is_vscode()
    send %A_ThisHotKey%
