! strange bug:

With `#SingleInstance, force` in ahk script RunWait gvim never returns.
Switching it to `ignore` solved the problem.
The `force` option was used to be able to quickly restart script on config change but I will do that from ahk script itself which will monitor config file for changes periodically.