vim fixes for terminal mode