From ae7e0d467894a517accc0f46e7b0f5c4d77561e7 Mon Sep 17 00:00:00 2001 From: SuenagaRyota Date: Sat, 30 Sep 2017 13:46:28 +0900 Subject: [PATCH] Updated Vim mode (markdown) --- Vim-mode.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Vim-mode.md b/Vim-mode.md index 78a00ef..78b0b07 100644 --- a/Vim-mode.md +++ b/Vim-mode.md @@ -5,6 +5,8 @@ You can use Vim keymap. ![image](https://user-images.githubusercontent.com/11307908/31042494-8656dc28-a5e4-11e7-9eb9-17fbcc5a084a.png) +Don't forget to restart Boostnote. + # Specifications ## :q to escape from Edit mode `:q`, `:qw`, `:wq` and `:q!` are available to escape from Edit mode. @@ -13,5 +15,15 @@ You can use Vim keymap. ref: https://github.com/BoostIO/Boostnote/pull/885 +## Custom keymaps +You can customize your keymaps, but it's not actually supported. If you want to map `jj` as `Esc`, run the script below on the developer console. + +```js +CodeMirror.Vim.map('jj', '', 'insert') +``` + +![image](https://user-images.githubusercontent.com/11307908/31042550-b8555adc-a5e5-11e7-9c42-6485eab82b5f.png) + + # note There's no way to share yank and clipboard for now. \ No newline at end of file