othree / html5.vim

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

directions #38

Closed nickdesaulniers closed 10 years ago

nickdesaulniers commented 10 years ago

Hi, how do I use this? I've installed with vundle and added the following line to my ~/.vimrc file: set omnifunc=syntaxcomplete#Complete " omnicompletion then in an html file typed:

se<ctrl+x><ctrl+o> and expected a menu or something. What am I doing wrong?

beckyconning commented 10 years ago

Yeah I followed these same instructions and can't get this to work either.

othree commented 10 years ago

try

autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
nickdesaulniers commented 10 years ago

I just get pattern not found...

othree commented 10 years ago

I pretend you wont to write <section> element So you should type <se then press <ctrl+x><ctrl+o> I think you miss one <

cpixl commented 10 years ago

I have the same problem...

nickdesaulniers commented 10 years ago

still no beans.

+ autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
+ Bundle 'othree/html5.vim'

added to: https://github.com/nickdesaulniers/dotfiles/blob/master/.vimrc

othree commented 10 years ago

Can you do a small test?

  1. vim test.html to open a new file. Using html filetype
  2. Type <
  3. Press

Can you see any option? If yes, do you see doctype options? Including HTML5 doctype?

Liberko commented 10 years ago

Hi, I installed by Vundle and only html5 syntax highlighting looks ok (without omnicomplete and indent). Copy or symbolic links "autoload" and "indent" bundled folders to ~/.vim/ resolve this issue for me. How to make install by Vundle correct out of the box (it's my third day with Vim and I can't live without this plugin ;)?

nickdesaulniers commented 10 years ago

I've also been installing via Vundle, maybe that's the issue?

othree commented 10 years ago

Are you update to latest version of Vundle?

I am using old vundle and it works fine. And they have several changes (including plugin syntax). Maybe that's why.

Liberko commented 10 years ago

I've updated only Vundle now and reinstalled html5 plugin. And everything works fine on my both computers. Thank you.

nickdesaulniers commented 10 years ago

Sweet, running :BundleUpdate updated Vundle for me and this now works. Thanks for all of the help everyone.