[CentralOH] VIM / omnicompletion
mark at microenh.com
Fri Jun 3 06:01:42 CEST 2011
Could someone tell me (or point me to a web page) how to set up vim's omnicompletion to work with Python. I'm a relative newbie with vim. I downloaded pythoncomplete.vim to my ~/.vim/ftplugin directory but when I do c-x, c-o while editing a .py file I get the message "omnifunc not set". I've also tried putting this file in the ~/.vim/autoload directory.
I added the line set ofu=syntaxcomplete#Complete to my .vimrc file and now when I do c-x, c-o, I get a "Pattern not found" when it's obvious to me that the pattern should be found (i.e. the function was defined two lines above where I'm entering its name)
More information about the CentralOH