brenton-leighton / multiple-cursors.nvim

A multi-cursor plugin for Neovim that works in normal, insert/replace, or visual modes, and with almost every command
Apache License 2.0
249 stars 7 forks source link

j, k motion after `MultiplecursorsAddDown` or `MultiplecursorsAddUp` is weird #76

Open Jaehaks opened 1 week ago

Jaehaks commented 1 week ago

Thankyou for your efforts,

After MultiplecursorsAddDown or MultiplecursorsAddUp, or in multi cursor mode, j and k motion is weird.

case1) it moves up and left 4 blocks. case2) it moves up and down 2 blocks, case3) multiple cursors are not maintained while j, k motion. h, l motion works.

https://github.com/user-attachments/assets/1051fbe1-27d7-47ea-af2d-8feeb18e80d9

Jaehaks commented 1 week ago

I think it has two problems,.

1) If line which main cursor is located in has indentation with tab, the column number is different although the position is same.

2) When moving in normal mode, the main cursor moves correctly, but other virtual cursors don't