feat(normal): normal-mode ZR does :restart

Make it a normal-mode command instead of a default mapping.
This commit is contained in:
Justin M. Keyes
2026-04-20 22:15:01 +02:00
parent 2551c7a8b1
commit a1c8b81672
8 changed files with 82 additions and 20 deletions

View File

@@ -3299,6 +3299,15 @@ static void nv_Zet(cmdarg_T *cap)
do_cmdline_cmd("q!");
break;
// "ZR": restart. With count, restart without checking for changes.
case 'R':
if (cap->count0 >= 1) {
do_cmdline_cmd("restart +qall!");
} else {
do_cmdline_cmd("restart");
}
break;
default:
clearopbeep(cap->oap);
}