mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
iss #832 Make :q! and :qw work in vim mode
This commit is contained in:
@@ -106,6 +106,8 @@ export default class CodeEditor extends React.Component {
|
||||
editorTheme.addEventListener('load', this.loadStyleHandler)
|
||||
|
||||
CodeMirror.Vim.defineEx('quit', 'q', this.quitEditor)
|
||||
CodeMirror.Vim.defineEx('q!', 'q!', this.quitEditor)
|
||||
CodeMirror.Vim.defineEx('wq', 'wq', this.quitEditor)
|
||||
}
|
||||
|
||||
quitEditor () {
|
||||
|
||||
Reference in New Issue
Block a user