slynch8 / 10x

10x IDE/Editor
190 stars 34 forks source link

Vim Inconsistencies #2744

Open trustednstaller opened 3 months ago

trustednstaller commented 3 months ago

The following are inconsistencies with the Vim support (I will add more as I come across them). I've also had consistent issues with being unable to "undo" something when using the Vim bindings, which is not a pleasant experience. Even resorting the the File->Undo after does not work. Not sure how I trigger this when I do, but I will try to define a repro.

No idea how to even describe this but it only happens under the Vim mode under unpredictable circumstances. No way to get out of it outside of disabling Vim mode.

image

slynch8 commented 3 months ago

Thanks for the feedback. Which version are you on? The issue with undo should have been fixed in version (1.0.189)

Also, make sure you have the latest vim script (it should have auto-updated but just in case) https://github.com/slynch8/10x/blob/main/PythonScripts/Vim/Vim.py

trustednstaller commented 3 months ago

image

Should be the latest, will also update the script, thanks!

trustednstaller commented 3 months ago

Undo is still failing in the latest version. Let me know if I should file this as a separate bug.

https://github.com/user-attachments/assets/019d1700-a55a-48ef-9312-7f5b0ef0a364

slynch8 commented 3 months ago

ok, I'll take a look at this soon. I suspect it's a mismatch with the PushUndoGroup/PopUndoGroup calls. Let me know if you find what causes it to go into this state.

SimpsonGSD commented 2 months ago

Just to update on your feedback.

These all work fine for me on latest.

zt and zb have just been added in 7654610.

These are still valid

trustednstaller commented 2 months ago

@SimpsonGSD Thanks for the updates!

I can confirm zt and zb, which are very welcoming additions.

Using . for to re-run indents still does not work, but the ctrl+d/u and esc appear to be stable.

SimpsonGSD commented 2 months ago

How are you indenting? For me doing >> then . repeats the indent

trustednstaller commented 2 months ago

That doesn't work for me, latest update and latest Vim.py. I can only continue indenting using >. If I execute >> (assuming back-to-back) nothing changes for me.

https://github.com/user-attachments/assets/6441ba24-d7db-4875-ba3c-e7d6c745a8bc

SimpsonGSD commented 2 months ago

Ah.. you're in visual mode. It looks like . isn't implemented at all for visual mode.

Reconciled todo list from this issue: