diff --git a/lib/vim_ahk.ahk b/lib/vim_ahk.ahk index 4cf86f6c..c63806cc 100644 --- a/lib/vim_ahk.ahk +++ b/lib/vim_ahk.ahk @@ -19,8 +19,8 @@ class VimAhk{ __About(){ - this.About.Version := "v0.7.1" - this.About.Date := "22/Apr/2020" + this.About.Version := "v0.7.2" + this.About.Date := "09/May/2020" this.About.Author := "rcmdnk" this.About.Description := "Vim emulation with AutoHotkey, everywhere in Windows." this.About.Homepage := "https://github.com/rcmdnk/vim_ahk" diff --git a/lib/vim_move.ahk b/lib/vim_move.ahk index 61d6c416..9593a457 100644 --- a/lib/vim_move.ahk +++ b/lib/vim_move.ahk @@ -80,9 +80,17 @@ ; 1 character if(key == "j"){ - this.SendDown() + if WinActive("ahk_group VimOneNoteGroup"){ + Send ^{Down} + } else { + Send,{Down} + } }else if(key="k"){ - this.SendUp() + if WinActive("ahk_group VimOneNoteGroup"){ + Send ^{Up} + } else { + Send,Up} + } ; Page Up/Down }else if(key == "^u"){ Send, {Up 10} @@ -128,23 +136,4 @@ this.Vim.Move.Move(key) } } - - SendUp(){ - ; Only for OneNote of less than windows 10? - if WinActive("ahk_group VimOneNoteGroup"){ - run, %A_scriptdir%\lib\util\sendUp.exe - } else { - Send,{Up} - } - } - - SendDown(){ - ; Only for OneNote of less than windows 10? - if WinActive("ahk_group VimOneNoteGroup"){ - run, %A_scriptdir%\lib\util\sendDown.exe - } else { - Send,{Down} - } - } - }