| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi I keep forgetting I've got this mapping " type table,,, to get <table></table> automatically close a tag :imap ,,, <esc>bdwa<<esc>pa><cr></<esc>pa><esc>kA You can adapt the technique to other scripts -- zzapper Best of VimTips http://vim.wikia.com/wiki/Best_Vim_Tips |
|
#2
| |||
| |||
| On 2008-08-16, zzapper <zzapper@gmail.com> wrote: > Hi > I keep forgetting I've got this mapping > > " type table,,, to get <table></table> automatically close a tag >:imap ,,, <esc>bdwa<<esc>pa><cr></<esc>pa><esc>kA > > > You can adapt the technique to other scripts If you use Vim 7 with omnicomplete you can just type </Ctrl-X Ctrl-O. Closes the tag you're in (and knows about the tags like <img> and <br> which don't get closed). |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.