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

Support reindentselectedlines #392

Open
musjj opened this issue May 20, 2024 · 0 comments
Open

Support reindentselectedlines #392

musjj opened this issue May 20, 2024 · 0 comments

Comments

@musjj
Copy link

musjj commented May 20, 2024

VSCodeVim/Vim#1017 (comment)

Indentation after both o (editor.action.insertLineAfter) and cc (editor.action.reindentselectedlines) is determined by the language support, but they're specified differently, so some language plugins support the former better than the latter. Maybe some supports the latter better than the former, but none that I've found.

I write C++ and python for my job and o works great while cc doesn't in both of these. Typescript and rust, however, both work as expected.

The issue can be reproduced with the Vim plugin by putting the cursor in an empty line like this:

{
█
}

Then pressing cc in normal mode. It should auto-indent, but it does nothing currently. o works perfectly, on the other hand.

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