You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the way I use vim to add a wrapper div. This is how I do this with vim:
cut the element I want to wrap in, with c + a + t.
enter the wrapper div, here in the edit mode.
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.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
<div>
opening tag and a</div>
closing tag.Expected behavior
Keep the auto inserted indentation, instead of deleting it.
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: