othree / html5.vim

HTML5 omnicomplete and syntax
http://www.vim.org/scripts/script.php?script_id=3236
934 stars 76 forks source link

Tags not appearing in omnicomplete #43

Closed jsit closed 10 years ago

jsit commented 10 years ago

I hate to be so vague in my title, but here's what I'm doing:

I'm running Vim with this command:

vim -Nu <(echo 'set rtp+=~/.vim/bundle/html5.vim/')

Then I'm doing :syntax on, :filetype plugin on, :set ft=html

Then I insert <artic, then type <C-x><C-o>, and I get "Pattern not found."

Same result for <asid, <heade, etc.

Am I doing something wrong?

jsit commented 10 years ago

If I do this, it then works:

:set ofu=syntaxcomplete#Complete

But filetype plugin sets ofu for html filetypes to htmlcomplete#CompleteTags -- and isn't that what it should be? (Looking at this plugin's autoload/htmlcomplete.vim)

othree commented 10 years ago

Sorry I am in a busy week.

syntaxcomplete#Complete is syntax complete function. Not actually comes from html5.vim.

Its related to #40 . And I think all new tags are missing for this case. Should fix today.

jsit commented 10 years ago

Thanks -- what should the value of omnifunc be for this plugin to suggest the HTML5 tag completions?

On Fri, Jun 6, 2014 at 11:46 AM, othree notifications@github.com wrote:

Sorry I am in a busy week.

syntaxcomplete#Complete is syntax complete function. Not actually comes from html5.vim.

Its related to #40 https://github.com/othree/html5.vim/issues/40 . And I think all new tags are missing for this case. Should fix today.

— Reply to this email directly or view it on GitHub https://github.com/othree/html5.vim/issues/43#issuecomment-45351824.

othree commented 10 years ago

Try this

vim -Nu <(echo 'let &rtp="~/.vim/bundle/html5.vim/," . &rtp')  

This will prepend html to the front. += will append. Which will cause autoload load the same file in vimruntime. Of course. please update to latest version.