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

After quiting edite mode, vscode vim would delete the indentation. #9009

Open
devinjohw opened this issue Apr 29, 2024 · 1 comment
Open

Comments

@devinjohw
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. enter edit mode, and enter a <div> opening tag and a </div> closing tag.
  2. keep cursor in between the opening tag and closing tag.
  3. add a new line through enter key
  4. quite edit mode and you will find the auto inserted indentation by VSCode will be deleted by VSCode Vim😞.

Expected behavior
Keep the auto inserted indentation, instead of deleting it.

Screenshots
2024-04-29 12 43 15

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version: 1.88.1
  • OS: Sonoma 14.4.1
@devinjohw
Copy link
Author

devinjohw commented Apr 29, 2024

I really like the way I use vim to add a wrapper div. This is how I do this with vim:

  1. cut the element I want to wrap in, with c + a + t.
  2. enter the wrapper div, here in the edit mode.
  3. paste the element I want to wrap in, here have to enter command mode, and paste. Here is what drive me crazy, when I enter the command the indentation was deleted, so I always paste the element to wrap in with no indentation. Although I can add the indention with format tool like prettier. while it should't have be deleted, shouldn't it?

My solution:
Paste with command + V, instead of entring command mode then paste.

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