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
commit a1ec54ff90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
});