> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Vecerina
> Sent: Tuesday, May 16, 2006 8:17 AM
> To: [email protected]
> Subject: HTML editing with vim: where to start ?
> 
> Hi,
> I'm pretty new to Vim, but went through several tutorials, 
> quick references, a number of help pages, and briefly through 
> the Vim book. I also hear announcements about Vim7's enhanced 
> built-in support for HTML editing. I even tried to play a bit 
> with the auto-completion (got some 'completion lists' popping 
> up after opening a PHP/HTML file...).
> 
> But where do I go from here to learn efficient HTML editing 
> with Vim, having expert around to receive guidance from?
> Especially when it comes to Vim7, all tutorials I have seen 
> seem terribly outdated.
> For example, here are a few simple things I need to do all the time:
>  - Insert tags around a selected block of text (e.g. <b>...</b>)
>  - get vim to automatically close/complete the innermost 
> previously opened tag.
>  - delete both the start and end tag with a minimum number of 
> keystrokes.
> I could find half a dozen of ways to do the above, and even 
> more posts about ways to semi-automate this.
> But those most common operations ought to be well supported 
> in Vim7 I imagine, is there a good default way to accomplish them?
> Other things I don't know how to find is: how do I make sure 
> that VIM finds the CSS associated with the document I am 
> editing (to help with auto-completion)?
> What are other tricks I should know for HTML-style document 
> editing, and where can I learn them?
> Are there any targeted tutorials I should look into?
> Is there an obvious resource I should use?


Along with the other suggestions you might want to look at the tip I posted:

Tip #346: Wrap text in HTML/XML tags after prompting for the tag name
http://www.vim.org/tips/tip.php?tip_id=346

Basically, after pressing ,,, it will prompt you for what to wrap the text
in.

I use this all the time to wrap text afterwards.

HTH,
Dave


Reply via email to