vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

citation completion does not work: omnifunc not set #70

Closed beierman closed 11 years ago

beierman commented 11 years ago

I've installed pandoc from https://github.com/vim-pandoc/vim-pandoc.git with pathogene into ~/.vim/bundle

I've added let g:pandoc_bibfiles=['/some/directory/references.bib'] to my ~/.vimrc

I've also made a copy to filename.bib when editing filename.md.

set ft gives me the correct filetype=pandoc. The snipet expansion and highlighting seem to work fine.

However ctrl-x ctrl-o for citation completion does not work: Option 'omnifunc' not set

Any ideas?

beierman commented 11 years ago

I managed to fix the issue by commenting out the following line from my .vimrc

autocmd FileType html set omnifunc=htmlcomplete#CompleteTags

and adding the following

filetype plugin on
fmoralesc commented 11 years ago

Have you tried enabling the autocommand while keeping filetype on?

dsanson commented 11 years ago

I am going to close this, since I think the problem was just that filetype plugn on was not set.