-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from rcmdnk/ahk_v2
Ahk v2
- Loading branch information
Showing
33 changed files
with
888 additions
and
843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
#If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Vim_Normal")) | ||
#HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Vim_Normal")) | ||
:::Vim.State.SetMode("Command") ;(:) | ||
`;::Vim.State.SetMode("Command") ;(;) | ||
#If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command")) | ||
#HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command")) | ||
w::Vim.State.SetMode("Command_w") | ||
q::Vim.State.SetMode("Command_q") | ||
h:: | ||
Send, {F1} | ||
{ | ||
SendInput("{F1}") | ||
Vim.State.SetMode("Vim_Normal") | ||
Return | ||
} | ||
|
||
#If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command_w")) | ||
Return:: | ||
Send, ^s | ||
#HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command_w")) | ||
Enter:: | ||
{ | ||
SendInput("^s") | ||
Vim.State.SetMode("Vim_Normal") | ||
Return | ||
} | ||
|
||
q:: | ||
Send, ^s | ||
Send, !{F4} | ||
{ | ||
SendInput("^s") | ||
SendInput("!{F4}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
Space:: | ||
Send, !fa | ||
{ | ||
SendInput("!fa") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
#If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command_q")) | ||
Return:: | ||
Send, !{F4} | ||
#HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Command_q")) | ||
Enter:: | ||
{ | ||
SendInput("!{F4}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
#If | ||
#HotIf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,43 @@ | ||
#If Vim.IsVimGroup() && (Vim.State.IsCurrentVimMode("Vim_Normal")) | ||
#HotIf Vim.IsVimGroup() && (Vim.State.IsCurrentVimMode("Vim_Normal")) | ||
i::Vim.State.SetMode("Insert") | ||
|
||
+i:: | ||
Send, {Home} | ||
{ | ||
SendInput("{Home}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
a:: | ||
{ | ||
if(! Vim.CheckChr("`n")){ | ||
Send, {Right} | ||
SendInput("{Right}") | ||
} | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
+a:: | ||
Send, {End} | ||
{ | ||
SendInput("{End}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
o:: | ||
Send,{End}{Enter} | ||
{ | ||
SendInput("{End}{Enter}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
+o:: | ||
Send, {Home}{Enter}{Left} | ||
{ | ||
SendInput("{Home}{Enter}{Left}") | ||
Vim.State.SetMode("Insert") | ||
Return | ||
} | ||
|
||
; Q-dir | ||
#If Vim.IsVimGroup() and WinActive("ahk_group VimQdir") and (Vim.State.Mode == "Vim_Normal") | ||
#HotIf Vim.IsVimGroup() and WinActive("ahk_group VimQdir") and (Vim.State.Mode == "Vim_Normal") | ||
; Enter insert mode to quickly locate the file/folder by using the first letter | ||
/::Vim.State.SetMode("Insert") | ||
; Enter insert mode at rename | ||
~F2::Vim.State.SetMode("Insert") | ||
|
||
#If | ||
#HotIf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#If Vim.IsVimGroup() | ||
#HotIf Vim.IsVimGroup() | ||
Esc::Vim.State.HandleEsc() | ||
^[::Vim.State.HandleCtrlBracket() | ||
|
||
#If Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Insert")) and (Vim.Conf["VimJJ"]["val"] == 1) | ||
#HotIf Vim.IsVimGroup() and (Vim.State.IsCurrentVimMode("Insert")) and (Vim.Conf["VimJJ"]["val"] == 1) | ||
~j up:: ; jj: go to Normal mode. | ||
Input, jout, I T0.1 V L1, j | ||
if(ErrorLevel == "EndKey:J"){ | ||
SendInput, {BackSpace 2} | ||
{ | ||
jout := InputHook("I T0.1 V L1", "j") | ||
jout.Start() | ||
EndReason := jout.Wait() | ||
if(EndReason == "EndKey"){ | ||
SendInput("{BackSpace 2}") | ||
Vim.State.SetNormal() | ||
} | ||
Return | ||
} | ||
|
||
#If | ||
#HotIf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.