inkdropapp / inkdrop-vim

Provides Vim modal control for Inkdrop, blending the best of Vim and Inkdrop
https://www.inkdrop.app/
MIT License
101 stars 9 forks source link

Support `gj` and `gk` to move cursor through wrapped lines #16

Closed jolyon129 closed 4 years ago

jolyon129 commented 4 years ago

Hi there,

Is it possible to add gj and gk motions to support move through wrapped lines?

It's a little painful to move around when I have a long paragraph without breaks.

Ref: https://vim.fandom.com/wiki/Move_through_wrapped_lines

Thanks.

craftzdog commented 4 years ago

Okay! Will be rolled out soon

craftzdog commented 4 years ago

Landed in v2.1.0πŸŽ‰

jolyon129 commented 4 years ago

After your new release, I add the following into my keymap.cson and now j and k always move by display line.

'.CodeMirror.normal-mode textarea':
  'j': 'vim:move-down-by-display-lines'
  'k': 'vim:move-up-by-display-lines'

It works perfect for me. πŸ˜„

Again, thanks for your quick turnaround time.

craftzdog commented 4 years ago

Cool tipπŸ‘