Remapping jk to escape with vim keybindings

Hi there,

first of all, thanks for that great app, really is gonna make my life easier :slight_smile:

I’m just having trouble to get the mapping of jk to to work… I already placed all of that in my keymap.json file:

‘.CodeMirror.vim-mode.normal-mode textarea’:
‘jk’: ‘vim:reset-normal-mode’
‘.CodeMirror.vim-mode.insert-mode textarea’:
‘jk’: ‘vim:exit-insert-mode’
‘.CodeMirror.vim-mode.replace-mode textarea’:
‘jk’: ‘vim:exit-insert-mode’
‘.CodeMirror.vim-mode.visual-mode textarea’:
‘jk’: ‘vim:exit-visual-mode’

am I missing something?
Thanks in advance :slight_smile:

With best regards,
Jörg

Hi Jorg,

Thanks for the question.
Check out this issue here:

Specifically, you need a space between each key stroke as follows:

'.CodeMirror.vim-mode.normal-mode textarea':
  'j k': 'vim:reset-normal-mode'

'.CodeMirror.vim-mode.insert-mode textarea':
  'j k': 'vim:exit-insert-mode'
  
'.CodeMirror.vim-mode.replace-mode textarea':
  'j k': 'vim:exit-insert-mode'

Hi Takuya,

oh awesome – thanks so much for your reply – got it working now!
One more thing I can’t find anything about – is it easily possible to export the current note to be edited/opened up in MacVim? Also, when I use the filter with ⌘-SHIFT-F and quicksearch a note – how I jump into its main contents directly instead of the title which happens when I hit ?

Thanks!

is it easily possible to export the current note to be edited/opened up in MacVim?

No, opening a note in the external app is not supported

when I use the filter with ⌘-SHIFT-F and quicksearch a note – how I jump into its main contents directly instead of the title which happens when I hit

Press Cmd + Enter. The command is editor:focus.

Thanks a ton! :slight_smile: