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

ci{ deletes all indentation #4514

Closed
Raikiri opened this issue Jan 25, 2020 · 1 comment
Closed

ci{ deletes all indentation #4514

Raikiri opened this issue Jan 25, 2020 · 1 comment

Comments

@Raikiri
Copy link

Raikiri commented Jan 25, 2020

Describe the bug
Change-inside-braces (ci{) commands removes all indentation from within a block. This is different from what vim does and is also makes this feature kind of useless.
To Reproduce
Steps to reproduce the behavior:

  1. Assume I have multiple nested blocks of C code:
void main()
{
  if(true)
  {
    while(false)
    {
      foo();
    }
  }
}
  1. Put cursor on foo(); in normal mode
  2. Do command ci{
  3. See that it deletes foo(); and puts cursor to the leftmost column disrespecting indentation.

Expected behavior
I expect to keep indentation that's consistent with the scope block that's being edited.

Additional context
This problem has been here for years. I gave this plugin a go this year to find out if anything's changed but it looks like it's still here.

@J-Fields
Copy link
Member

Yeah, this is frustrating (I write C++ and python for my work). Unfortunately this is the fault of the language extension; not VSCodeVim - see #1017 (comment).

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

No branches or pull requests

2 participants