1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-19 04:31:46 +00:00

Updated Vim mode (markdown)

SuenagaRyota
2017-09-30 13:46:28 +09:00
parent b3343bc099
commit ae7e0d4678

@@ -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', '<Esc>', '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.