html - Emmet Vim wrap a specific tag around -


this basic not find easier way of doing it.

i have html file , want wrap <strong></strong> around part.

so, go visual mode. select text. control y - ,. asks tag. enter strong , wraps tags expected.

but way long vim imho.

is not there quicker/ easier way done? may abbreviation attached keystroke?

so, select text in visual mode, press key , there --- <strong> </strong> appear around it?

with surround plugin it's select text in visual mode, press s<, tag name, <cr>.

or ys, motion or text object, <, tag name, <cr>.

< can replaced t, attributes can appended tag name, , <cr> can replaced >.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -