Use vim instead of gvim in various scripts. Use vim in server mode.