📜 ⬆️ ⬇️

html omnicomplete

Reading the vim_use group, I found out that the vim omni completion (which is a simple analogue of intelliSense) can close html tags.
Example:
<table> </<CX><CO>
<CX> <CO> will close the table
You can, of course, use the closetag.vim script. There, to close the tag, write </ no - this is a plus. True, it must be installed separately - this is a minus.
I, most likely, will refuse a closetag and will use omni completion.
Like that:
imap <C-_> </<CX><CO>
Click <C -_> - the open tag is closed.

')

Source: https://habr.com/ru/post/37766/


All Articles