-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-vim-mode.ahk
53 lines (42 loc) · 1.16 KB
/
windows-vim-mode.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
#SingleInstance Force
#MaxHotkeysPerInterval 300
Process, Priority,, Normal
Menu, Tray, Tip, Windows Vim Mode
SetKeyDelay, -1
;@Ahk2Exe-Obey U_Version, FileRead U_Version`, version
;@Ahk2Exe-SetFileVersion %U_Version%
;@Ahk2Exe-SetProductVersion Build v%U_Version% AutoHotkey v%A_AhkVersion%
#Include options.ahk
#Include src\groups.ahk
#Include src\functions.ahk
global visualMode := false
global lastDir := "none" ; Used when exiting visual mode with Esc
global LAT := {}
switchToInsertMode()
HotKey, % Options["RELOAD_SHORTCUT"], LabelReload
HotKey, % Options["OPEN_OPTIONS_SHORTCUT"], LabelOpenOptions
HotKey, % Options["EXIT_SHORTCUT"], LabelExit
#Include src\shortcuts.ahk
; Use for your own personal keybindings. Ignored if it doesn't exist, ignored by .gitignore
#Include *i src\custom.ahk
EnableNeoMousekeys(activation) {
switchToInsertMode()
SendLevel 1
Send, % activation
SendLevel 0
}
LabelReload:
Suspend, Permit
ShowMessage("RELOADING...", "Yellow")
Sleep, 500
Reload
Return
LabelOpenOptions:
Suspend, Permit
Run, options.ini
Return
LabelExit:
Suspend, Permit
ShowMessage("EXITING...", "Yellow")
Sleep, 500
ExitApp