Vim: Multiple Cursor bug in html file

Created on 30 Dec 2019  路  7Comments  路  Source: VSCodeVim/Vim

Describe the bug
In the latest vscode (1.41) the vscode team release a new feature called html mirror cursor now when i open a html file and go to a tag in normal mode it also select its closing tag in multi cursor mode but when i move my cursor it does not close the multi cursor mode

To Reproduce
create a simple html file with some tag like

<form>
<input type='text'>
<input type='text'>
</form>

move your cursor in normal mode to opening form tag you see that closing form tag also get selected now move your cursor into next line in input you see that form tag is still selected

Expected behavior
the multi cursor should be closed when i am not in html tag

Environment (please complete the following information):

  • Extension (VsCodeVim) version:1.12.4
  • VSCode version: 1.41
  • OS: elementry os 5 (juno)

Most helpful comment

for anyone who is suffering from the same issue you can disable this vscode feature via setting html.mirrorCursorOnMatchingTag just search _mirror cursor on matching tag_ in setting and uncheck the checkbox

All 7 comments

for anyone who is suffering from the same issue you can disable this vscode feature via setting html.mirrorCursorOnMatchingTag just search _mirror cursor on matching tag_ in setting and uncheck the checkbox

@amitbisht511 thanks, this was so annoying I temporarily disabled the whole vim extension until I had time to search for a fix

HTML mirror cursor is an absolutely horrible feature. Was screwing me up for quite a while until I was finally forced to search about it. "On" by default is just an unbelievably bad choice.

@Brade to be fair, I think if you're not using VSCodeVim, it's probably quite useful

I'm not using that, and I can assure you it's still not useful. I often paste class attributes etc to similar open tags, and it kept pasting it all on the end tags as well. I've turned it off now, but I really disagree with the decision to have it "on" by default.

Ah interesting; I'd figured it would be smart enough to not copy attributes to the end tag. That is bothersome.

In my case, html.mirrorCursorOnMatchingTag was off by default but I had the https://github.com/formulahendry/vscode-auto-rename-tag extension installed which messed up this vim plugin big time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucastheisen picture lucastheisen  路  3Comments

triztian picture triztian  路  3Comments

edwintorok picture edwintorok  路  3Comments

stefanoio picture stefanoio  路  3Comments

waltiam picture waltiam  路  3Comments