Friday, March 6, 2015

Re: Unable to get omnicomplete to work for Python 3.4.3.

On Fri, Mar 6, 2015 at 11:12 AM, boB Stepp <robertvstepp@gmail.com> wrote:
>
> I am not seeing anything in the help that I am seeing as a solution to
> my dilemma. I guess I am going to bite the bullet, uninstall Vim and
> reinstall it. Perhaps during installation it will see that there is no
> Python 2 installed, only Python 3 and will configure itself
> appropriately. Not elegant, but I do not know enough for an elegant
> approach. At least this might eliminate a few things and make it
> easier for further assistance. I'll let everyone know what transpires.

I have continued to struggle with this all day. I do not understand
vim scripting, file type detection, etc., but it is clear that my
Python 3 files are not being recognized. If I am understanding things
correctly when I write:

filetype plugin indent on

in my _vimrc file, this should lead to Vim checking the ftplugin
directory to get the appropriate file for the detected file type and
run that file. In each of my several installations today of different
people's Windows installers for Vim 7.4, there is only one file
pertaining to Python in the ftplugin directory, which is "python.vim"
. Inside this file is the line:

setlocal omnifunc=pythoncomplete#Complete

which governs omnicompletion for Python2. The corresponding
omnicompletion function for Python3 is python3complete#Complete, which
obviously is never seen since it has no way to be called as Vim 7.4 is
currently set up.

Am I correct about this? If yes, how can I get a ftplugin file set up
for Python3?

--
boB

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: