> -----Original Message----- > From: Mikolaj Machowski [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 17, 2006 6:57 AM > To: [email protected] > Subject: Re: HTML editing with vim: where to start ? > > Dnia wtorek, 16 maja 2006 18:37, A.J.Mechelynck napisaĆ: > > Ivan Vecerina wrote: > > [...] > > > > > For example, here are a few simple things I need to do > all the time: > > > [...] > > > - get vim to automatically close/complete the innermost > previously > > > opened tag. > > > > [...] > > > > see the closeag.vim plugin, > > http://vim.sourceforge.net/scripts/script.php?script_id=13 > > For base needs this is not needed. Closetag is now part of > completion scripts for HTML.
Since Ivan mentioned he is using PHP with his HTML, closetag will be very useful for him. I keep the following in my vimrc: " CloseTag options: " http://vim.sourceforge.net/script.php?script_id=13 " closetag.vim " Functions and mappings to close open HTML/XML tags " This uses <C-_> to close an open tag above if filereadable(expand('$VIM/vimfiles/scripts/closetag.vim')) let g:closetag_html_style=1 autocmd Filetype html,xml,xsl,sql,ant,sqlunit,mhtml,php source $VIM/vimfiles/scripts/closetag.vim endif HTH, Dave
