On Sun, May 24, 2009 at 12:00 PM, Nicolas Aggelidis wrote: > > hi guys i am trying to use omnicomplete with a css file, and it doesn't > work.... > > i followed instructions from here: > > http://amix.dk/blog/viewEntry/19021 > > specifically i added the following to my vimrc > autocmd FileType python set omnifunc=pythoncomplete#Complete > autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS > autocmd FileType html set omnifunc=htmlcomplete#CompleteTags > autocmd FileType css set omnifunc=csscomplete#CompleteCSS > autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags > autocmd FileType php set omnifunc=phpcomplete#CompletePHP > autocmd FileType c set omnifunc=ccomplete#Complete
The blog is wrong. Assuming that you're running vim 7 and have filetype plugins enabled (for instance, with "filetype plugin indent on") all of these autocmds would be provided by the built-in ftplugins. > now i am editing a .css file but when when i type C-x C-o > ( as the help file suggests here: > http://vimdoc.sourceforge.net/htmldoc/version7.html#new-omni-completion > ) > nothing happens in the text. > The only difference i take is the change of vim's line from > > -- INSERT -- > to > -- (insert) -- When you press <C-x>, you should see it change from -- INSERT -- to -- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) If that's not what you're seeing, you may not be running vim 7, or you may have :imap'ed <C-x> to something else. ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
