How can one close html tags in vim quickly

Posted by wds on Stack Overflow See other posts from Stack Overflow or by wds
Published on 2008-09-25T00:10:08Z Indexed on 2010/05/29 9:32 UTC
Read the original article Hit count: 271

Filed under:
|
|

It's been a while since I've had to do any html-like code in vim, but recently I came across this again. Say I'm doing a simple bit of a html page:

<html><head><title>This is a title</title></head></html>

How do I write those closing tags for title, head and html down quickly? I feel like I'm missing some really simple way here that does not involve me going through writing them all down one by one. Of course I can use ^P to autocomplete the individual tag names but what gets me on my laptop keyboard is actually getting the brackets and slash right.

© Stack Overflow or respective owner

Related posts about html

Related posts about Xml