Linsong wrote:

ice_2001cn wrote:


Linsong wrote:

Bram Moolenaar wrote:

Zhang Yi wrote:

pythoncomplete works fine in vim7.0e, but in vim7.0e1 and vim7.0e2, when I
press C-x C-o, error reported and no completion list displayed.
 I use Same compile environment and command under Win XP SP2.



I don't see anything that changed specifically for Python completion.

What error is reported?  Did you compile Vim with Python support?
Hi,
I wonder if the pycomplete.py realy works, when I try the following case, it gives me some errors:

     def test(a, b):
         return a+b
     if __name__=="__main__":
         tes<C-X><C-O>
BR
Vincent


      def test(a, b):
          return a+b
      if __name__=="__main__":
          tes<C-X><C-O>


At this time, use <c-x><c-p> or <c-x><c-n> instead of <c-x><c-o>
^_^
For completion a function defined in the same file . Use <c-x><c-n>
<c-x><c-p> . It's the same for c/c++,java,php .....


If this is true, then I think it is a bad design :(

And I just tried the following codes, it give me some errors then the completion list menu shows up:

   import os
   if __name__=="__main__":
      os.<C-X><C-O>

BR
Vincent

I just read the manual of completeopt, I think if there is 'menu' in the completeopt, then <Enter> should insert the selected menu item instead of insert a new line; else, there is no 'menu' in the completeopt, <Enter> starts a new line.
   I think this is more reasonalbe.

BR
Vincent


Reply via email to