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

Allow Shift-Enter to trigger auto-indent. #44

Open
mkrasnitski opened this issue Jan 9, 2023 · 1 comment
Open

Allow Shift-Enter to trigger auto-indent. #44

mkrasnitski opened this issue Jan 9, 2023 · 1 comment

Comments

@mkrasnitski
Copy link

mkrasnitski commented Jan 9, 2023

While in insert mode, typing a brace or set of braces, and then immediately pressing enter, does not insert a matching closing brace. I tend to type quickly enough that this happens fairly frequently, and I find I've had to consciously slow down when opening braces/indents now.

@mkrasnitski
Copy link
Author

Nevermind, I was being led down a rabbit hole that wasn't there. Turns out Shift-Enter doesn't trigger auto-indent, and that's what was causing me problems. I tried doing inoremap <S-CR> <CR> but that doesn't seem to fix it. Any ideas on how to resolve this minor annoyance?

@mkrasnitski mkrasnitski changed the title Pressing enter too quickly does not insert matching closing brace. Allow Shift-Enter to trigger auto-indent. Jan 9, 2023
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

1 participant