Merge pull request #2241 from billyvg/fix/vim-save

fix(editor): Fix vim mode quit and add `wq`
This commit is contained in:
hydroflame
2022-01-02 11:40:40 -05:00
committed by GitHub

View File

@ -178,7 +178,12 @@ export function Root(props: IProps): React.ReactElement {
save();
});
MonacoVim.VimMode.Vim.defineEx("quit", "q", function () {
props.router.toTerminal();
});
// "wqriteandquit" is not a typo, prefix must be found in full string
MonacoVim.VimMode.Vim.defineEx("wqriteandquit", "wq", function () {
save();
props.router.toTerminal();
});
editor.focus();
});