2013. december 7., szombat 21:03:39 UTC+1 időpontban Gallagher Polyn a következőt írta:
> I'm easing into vim by using it while following along some online coding tutorials (nice thing about this approach is I'm challenged to emulate the video IDE functioning with vim!)
>
> Anyway, it seems to me there must be an easy ways to get autocompletion for html (and other standard tag systems), but nothing I've found, yet, seems to offer a sure shot -- maybe there are multiple approaches!
>
> How can I configure vim to allow me to type this...
>
> <html>
>
> ...and have the closing tag created, too...
>
> </html>
>
> Thanks,
>
> G
If you don't want to use a plugin, then you can write a map to this problem:
autocmd Filetype html,xml,xslt,docbk inoremap <buffer> > ></<C-X><C-O><C-O><Esc>%i
You should
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, December 8, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment