On Sun, 31 Dec 2006, Robert MannI apparently wrote:
What's the quickest way to enclose the current line the
cursor is on in, say, li/li tags?
Here's one approach:
http://www.american.edu/econ/notes/html_xhb.vim
hth,
Alan Isaac
Hello!
What's the quickest way to enclose the current line the cursor is on
in, say, li/li tags?
Thank you,
Rob
Robert MannI wrote:
Hello!
What's the quickest way to enclose the current line the cursor is on
in, say, li/li tags?
Thank you,
Rob
I suggest
:s/^.*$/li\0\/li/
which can be mapped to a key.
This method lends itself to adding an arbitrary tag (in a script, with the tag
in a
What's the quickest way to enclose the current line the cursor is on
in, say, li/li tags?
Depends on what you mean by quickest...are you looking for a
one-shot, or are you looking for something you can map, or are
you looking to perform the action on a number of lines?
For a simple
What's the quickest way to enclose the current line the
cursor is on in, say, li/li tags?
Wow, 2 emails in the same day.
I created a tip for this:
Tip #346: Wrap text in HTML/XML tags after prompting for the tag name
http://www.vim.org/tips/tip.php?tip_id=346
With some refinements at the