Fix issues with terminal vim not having w: variables by using g: instead