Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast typing causes hanging indents to become misaligned in vim #123

Open
sheluchin opened this issue Jun 7, 2022 · 1 comment
Open

Fast typing causes hanging indents to become misaligned in vim #123

sheluchin opened this issue Jun 7, 2022 · 1 comment

Comments

@sheluchin
Copy link

sheluchin commented Jun 7, 2022

Given a form like:

(def foo [1
          2])

Typing quickly at the top level causes the the alignment to break:

(def foobar [1]
       2)

This happens under smart and indent parinfer_mode, but not when using paren mode.

The timing of the misalignment seems inconsistent, and things work correctly most of the time. To reproduce it consistently, instead of replacing foo with foobar (a small number of keystrokes), just button mash in insert mode.

Pasting and substitution can also produce the same result.

@sheluchin sheluchin changed the title Fast typing causes hanging indents to become misaligned Fast typing causes hanging indents to become misaligned in vim Jun 23, 2022
@daveyarwood
Copy link

I've noticed a similar issue where if I use visual insert mode to move a block of code over to the right, and I type in the space characters too quickly, then all hell breaks loose. It works correctly if I slowly enter the space characters one by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants