Skip to content

Improved parenthesis highlighting in vi insert mode #1806

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomaneo
Copy link
Contributor

@tomaneo tomaneo commented Apr 27, 2025

Matching parenthesis highlighting was not very useful in vi insert mode, because it didn't highlight the opening parenthesis for just inserted closing parenthesis. Only after switching back to normal mode you could see the matching pair highlighted.

This patch changes insert mode behaviour to use parenthesis before the cursor as the highlighted pair in insert mode. This way it is also similar to emacs mode.

Before the patch:
parens-original

After the patch:
parens-improved

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

Successfully merging this pull request may close these issues.

1 participant