-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVisual.ahk
61 lines (41 loc) · 975 Bytes
/
Visual.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#if !wim_ignore && (wim_mode == "VISUAL")
; ----------------------------------------------------------------
; Mode change
; ----------------------------------------------------------------
v::Gosub, wim_switchTo_Normal
~LButton::Gosub, wim_switchTo_Normal
~MButton::Gosub, wim_switchTo_Normal
~RButton::Gosub, wim_switchTo_Normal
; ----------------------------------------------------------------
; Movement
; ----------------------------------------------------------------
h::
count := wim_useCount()
Send, +{Left %count%}
return
j::
count := wim_useCount()
Send, +{Down %count%}
return
k::
count := wim_useCount()
Send, +{Up %count%}
return
l::
count := wim_useCount()
Send, +{Right %count%}
return
; TODO: ^^
$::
Send, +{End}
Send, +{Left}
wim_useCount() ; Reset count
return
; TODO: gg
+G::
Send, +^{End}
Send, +{Home}
wim_useCount() ; Reset count
return
; TODO others
#if ; Global context