Make vim dialog work correctly