mirror of
https://github.com/neovim/neovim.git
synced 2026-05-28 15:55:34 +00:00
feat(normal): normal-mode ZR does :restart
Make it a normal-mode command instead of a default mapping.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user