Saturday, July 7, 2012

how to override system ftplugin settings with user custom ?

I set one option omnifunc in `~/.vim/ftplugin/python/python.vim` like this:
setlocal omnifunc=3Dpython3complete#Complete
But this can not work.
When I open a python file. I checked omnifunc setting with command:
`:verbose set omnifunc?`
I get output:
omnifunc=3Dpythoncomplete
Last set /usr/share/vim/vim73/ftplugin/python.vim

I want to override the system omnifunc setting with my own setting:
setlocal omnifunc=3Dpython3complete#Complete

Does anybody know why my custom option can not work ?

--
[ stardiviner ] ^^&^^ {I hate all of you ! Leave me alone}
IRC(freenode): stardiviner \\ Twitter: @numbchild \\
GnuPG Key fingerprint
>>> 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433

No comments: