Moved the logic so the preference has no effect outside of gvim