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

How can I replace a html element with another element tag in VIM #38

Closed
janbaer opened this issue Sep 13, 2016 · 0 comments
Closed

How can I replace a html element with another element tag in VIM #38

janbaer opened this issue Sep 13, 2016 · 0 comments
Labels

Comments

@janbaer
Copy link
Owner

janbaer commented Sep 13, 2016

When you've installed the vim-surround plugin it's easy. You just to set the focus within the tag and then enter

In this case the complete element will be replaced, even the attributes.
When you only change for example from a span to a div, but leave the attributes.
You've to enter the same but without the > at the end

@janbaer janbaer added the VIM label Sep 13, 2016
@janbaer janbaer closed this as completed Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant