Ignore compatible mode

This commit is contained in:
Joel Teichroeb
2014-02-28 15:37:19 -08:00
parent a44f39955f
commit d0dcf56338
6 changed files with 13 additions and 78 deletions

View File

@@ -6961,15 +6961,6 @@ static void ex_mkrc(exarg_T *eap)
failed = TRUE;
}
if (eap->cmdidx != CMD_mkview) {
/* Write setting 'compatible' first, because it has side effects.
* For that same reason only do it when needed. */
if (p_cp)
(void)put_line(fd, "if !&cp | set cp | endif");
else
(void)put_line(fd, "if &cp | set nocp | endif");
}
if (!view_session
|| (eap->cmdidx == CMD_mksession
&& (*flagp & SSOP_OPTIONS)))