1

How to execute ahk (AutoHotScripts) scripts using Gvim. Let say I have interpreter:

"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "d:\ahk\myscript.ahk" 2>"Syntax-Error Log.txt"

While I am in normal mode in Gvim I press leader s.Screen divides into two windows.New window with Error Stream shows at the bottom. Similar to every IDE behaviour when you run/debug program. Window focus should stay at the window with ahk script. If everything is OK, than ahk script is executed.

0

I manage to do partial solution, but still there is problem with, nesting errorlog windows, and cmd.exe that hangs after execution.

noremap <leader>s :!"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut \ %:p 2>"errorlog.txt"<CR> :sp errorlog.txt<CR><C-W>J<CR> :resize 5<CR>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.