VSCodeVim / VSCodeVim/Vim

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

Open
#9,009 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in VSCode 1.88.1 with VSCodeVim: enter edit mode between the HTML tags, insert a line, and leave edit mode. Trace the edit-mode exit handling; done means the indentation inserted by VSCode remains after leaving edit mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.