Skip to content Skip to sidebar Skip to footer

Problem With Vim Omnicomplete And System Python

I have Vim set up, with +python (:version says it's ok). My .vimrc contains filetype plugin on set ofu=syntaxcomplete#Complete autocmd FileType python setlocal omnifunc=pythoncompl

Solution 1:

Rather than syntaxcomplete#Complete, use pythoncomplete#Complete:

# ~/.vim/ftplugin/python.vim
setlocal omnifunc=pythoncomplete#Complete# Or by autocmd
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete

Python completion

Post a Comment for "Problem With Vim Omnicomplete And System Python"