Re: Enclosing current line in HTML tags

2007-01-01 Thread Alan G Isaac
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

Enclosing current line in HTML tags

2006-12-31 Thread Robert MannI
Hello! What's the quickest way to enclose the current line the cursor is on in, say, li/li tags? Thank you, Rob

Re: Enclosing current line in HTML tags

2006-12-31 Thread A.J.Mechelynck
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

Re: Enclosing current line in HTML tags

2006-12-31 Thread Tim Chase
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

RE: Enclosing current line in HTML tags

2006-12-31 Thread David Fishburn
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