Ben Godfrey

Strip tags in a Vim buffer

Before I forget this, here’s a simple Vim command to strip XML or HTML tags from a buffer. The expression is non-greedy and catches tags that span multiple lines.

:%s/<\_.\{-1,\}>//g

Comments

Comments are closed for this post.

Add a new comment

Comments are closed for this post.