Fix vim function to not recurse when gvim is not installed.