Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Python: Vim Autocompletion Fail #163

Closed
mwurth opened this Issue Sep 19, 2012 · 8 comments

Comments

Projects
None yet
4 participants

mwurth commented Sep 19, 2012

Autocompletion for vim isn't working for me. Everytime I start typing somethin in python the autocompletion thing pops up and the only way to get rid of it is to close vim.

Trying to press Escape and getting back into insert mode yields "Error 523 Not allowed here". Any ideas on how to fix this?

http://shelr.tv/records/5059848396608010b3000095

Owner

skwp commented Sep 27, 2012

Anyone else confirm this? YADR is a ruby-focused repo, but I don't know why it wouldn't work for python. I believe @p7k is using it for python.

@skwp skwp closed this Sep 27, 2012

mwurth commented Sep 28, 2012

Why was this issue closed?

Please try to reproduce what I did here:
http://shelr.tv/records/5059848396608010b3000095

  1. Open a new python script
    vim test.py
  2. In the first line import any module (e.g. os)
    import os
  3. in the second line try to use anything from that module (eg. os.curdir)
    os.curdir

Vim locks up after typing the dot. This should take about 15 seconds to test.

Please let me know if this is a problem on my machine only (I tried a fresh install of yadr) because this makes using vim for coding useless. And I would have to stop using yadr if I can't get this fixed (I really would like to use yadr because of zsh, the other vim plugins and the nice colorschemes).

While many people using YADR may favor ruby, I bet there are some that speak python too. Asking for people to confirm this is useless if you simultaneously close the ticket.

@skwp skwp reopened this Sep 28, 2012

Owner

skwp commented Sep 28, 2012

Sorry I was on a ticket closing spree and may have been over agressive. Please do investigate the issues..my bet is it may be that the autocomplete for python specifically is broken. I would maybe file this issue with the owner of https://github.com/Shougo/neocomplcache. You can confirm by getting a clean vim installation with nothing but that one plugin...

Contributor

p7k commented Sep 28, 2012

a. problem confirmed - autocomplete does freeze up
b. i remember fixing this problem by finding a conflicting plugin - that's the cause of this kaka

i haven't been using yadr for while, but i'll be getting back into it with hope of decking it our for python. the pythonic plugin ecosystem is quite different from ruby, so in a lot of ways this would necessitate a rather drastic fork or serious configurability. i've lamed out in the past and stuck with my super python-specific dotfiles. but so much great work has been done on yadr in the usability department that it's a shame to not code with it.

this will be a good place to start looking at python with yadr, again.

@ghost

ghost commented Oct 4, 2012

Shougo-neocomplcache is the plugin that is crashing. You can disable Python autocomplete with:
let g:neocomplcache_omni_patterns['python'] = ''
or remove the plugin. Their ticket on this issue can be found here:
Shougo/neocomplcache#212

mwurth commented Oct 4, 2012

Thanks a lot - I added
let g:neocomplcache_omni_patterns['python'] = ''
to my ~/.vimrc.after which solved my issues.

Owner

skwp commented Oct 4, 2012

I'll add this to the readme. So I guess neocomplcache is out for python users? Are other autocomplete plugins working better?

abdel commented Oct 31, 2012

Cheers for the fix. There's a plugin called pydiction that does code completion for Python.

@skwp skwp closed this in ae88cdf Nov 13, 2012

@renoirb renoirb added a commit to renoirb/ubuntu-yadr that referenced this issue Nov 14, 2012

@renoirb renoirb Merged stuff
Merge remote-tracking branch 'original/master' into develop

* original/master: (103 commits)
  Bring back keybindings to enable vim mode and ctrl-R [Fix #212]
  Rdebugrc [Fix #189]
  Upgraded vim plugins
  Sprintly alias
  Prevent neocomplcache hanging in python [Fix #163]
  Added `vim/spell` to gitignore.
  Added tmux support [Fix #190]
  Fix pointer to PCKeyboardHack [Fix #200]
  Upgrade vim plugins
  Enable vi mode in the prompt
  remove highlighters to fix beep [fixes #199]
  enable ssh-agent forwarding
  removed redundant $PATH
  remove rvm, part of prezto ruby module
  remove key-bindings, part of prezto
  remove color-man-pages, part of prezto
  load prezto modules
  enable all syntax highlighters
  update to latest zpreztorc from prezto repository
  refactor skwp theme in the "prezto" style
  ...

Conflicts:
	.gitmodules
	README.md
	vim/bundle/AndrewRadev-splitjoin
	vim/bundle/MarcWeber-vim-addon-mw-utils
	vim/bundle/Shougo-neocomplcache
	vim/bundle/briandoll-change-inside-surroundings
	vim/bundle/chrisbra-color_highlight
	vim/bundle/garbas-vim-snipmate
	vim/bundle/godlygeek-csapprox
	vim/bundle/godlygeek-tabular
	vim/bundle/gregsexton-gitv
	vim/bundle/groenewege-vim-less
	vim/bundle/honza-snipmate-snippets
	vim/bundle/jistr-vim-nerdtree-tabs
	vim/bundle/kchmck-vim-coffee-script
	vim/bundle/kien-ctrlp
	vim/bundle/majutsushi-tagbar
	vim/bundle/mattn-gist-vim
	vim/bundle/mattn-webapi-vim
	vim/bundle/mattn-zencoding-vim
	vim/bundle/mileszs-ack
	vim/bundle/raimondi-delimitMate
	vim/bundle/scrooloose-nerdtree
	vim/bundle/scrooloose-syntastic
	vim/bundle/sjbach-lusty
	vim/bundle/skwp-vim-html-escape
	vim/bundle/skwp-vim-ruby-conque
	vim/bundle/timcharper-textile
	vim/bundle/tomtom-tcomment_vim
	vim/bundle/tomtom-tlib_vim
	vim/bundle/tpope-vim-bundler
	vim/bundle/tpope-vim-endwise
	vim/bundle/tpope-vim-fugitive
	vim/bundle/tpope-vim-git
	vim/bundle/tpope-vim-pathogen
	vim/bundle/tpope-vim-rails
	vim/bundle/tpope-vim-rake
	vim/bundle/tpope-vim-repeat
	vim/bundle/tpope-vim-unimpaired
	vim/bundle/vim-ruby-vim-ruby
	vim/bundle/vim-scripts-Vim-R-plugin
08483a8

@macat macat added a commit to macat/dotfiles that referenced this issue Nov 14, 2012

@macat macat Merge remote-tracking branch 'upstream/master'
* upstream/master: (33 commits)
  Bring back keybindings to enable vim mode and ctrl-R [Fix #212]
  Rdebugrc [Fix #189]
  Upgraded vim plugins
  Sprintly alias
  Prevent neocomplcache hanging in python [Fix #163]
  Added `vim/spell` to gitignore.
  Added tmux support [Fix #190]
  Fix pointer to PCKeyboardHack [Fix #200]
  Upgrade vim plugins
  Enable vi mode in the prompt
  remove highlighters to fix beep [fixes #199]
  enable ssh-agent forwarding
  removed redundant $PATH
  remove rvm, part of prezto ruby module
  remove key-bindings, part of prezto
  remove color-man-pages, part of prezto
  load prezto modules
  enable all syntax highlighters
  update to latest zpreztorc from prezto repository
  refactor skwp theme in the "prezto" style
  ...

Conflicts:
	vim/bundle/Shougo-neocomplcache
	vim/bundle/scrooloose-syntastic
	vim/plugin/settings/neocomplcache.vim
740f7e5

@profer profer pushed a commit to profer/dotfiles that referenced this issue Nov 26, 2012

Wolfgang Profer Merge commit 'ce05cc1866cd82573ebf196b8b7fef1be6b4fe86'
# By Yan Pritzker (79) and others
# Via Yan Pritzker
* commit 'ce05cc1866cd82573ebf196b8b7fef1be6b4fe86': (124 commits)
  Ensure EDITOR/VISUAL vars set to vim [Fix #217]
  Better colors, readme update
  Remove SearchComplete plugin - too much grief
  Improve colors in normal vi [Fix #216]
  cl! abbreviation for logging, and ;; for closing javascript lines
  Undo zm mapping which conflicts with folding. Jump to method now Cmd-Shift-M
  Remapped ,m to zm due to conflict with ShowMarks
  Fix 'ga *foo*' by not globbing git
  Improved vim colors
  Fix skwp and kylewest themes - ensure git-info is on [Fix #213]
  Font improvement: Inconsolata XL
  Bundles for better javascript highlighting and tag highlighting
  Bring back keybindings to enable vim mode and ctrl-R [Fix #212]
  Rdebugrc [Fix #189]
  Upgraded vim plugins
  Sprintly alias
  Prevent neocomplcache hanging in python [Fix #163]
  Added `vim/spell` to gitignore.
  Added tmux support [Fix #190]
  Fix pointer to PCKeyboardHack [Fix #200]
  ...
b6fd696

@xvaara xvaara added a commit to xvaara/dotfiles that referenced this issue Nov 27, 2012

@xvaara xvaara Merge remote-tracking branch 'upstream/master'
* upstream/master: (125 commits)
  Automatically use zshell
  Ensure EDITOR/VISUAL vars set to vim [Fix #217]
  Better colors, readme update
  Remove SearchComplete plugin - too much grief
  Improve colors in normal vi [Fix #216]
  cl! abbreviation for logging, and ;; for closing javascript lines
  Undo zm mapping which conflicts with folding. Jump to method now Cmd-Shift-M
  Remapped ,m to zm due to conflict with ShowMarks
  Fix 'ga *foo*' by not globbing git
  Improved vim colors
  Fix skwp and kylewest themes - ensure git-info is on [Fix #213]
  Font improvement: Inconsolata XL
  Bundles for better javascript highlighting and tag highlighting
  Bring back keybindings to enable vim mode and ctrl-R [Fix #212]
  Rdebugrc [Fix #189]
  Upgraded vim plugins
  Sprintly alias
  Prevent neocomplcache hanging in python [Fix #163]
  Added `vim/spell` to gitignore.
  Added tmux support [Fix #190]
  ...

Conflicts:
	README.md
	vim/bundle/AndrewRadev-splitjoin
	vim/bundle/Shougo-neocomplcache
	vim/bundle/chrisbra-color_highlight
	vim/bundle/garbas-vim-snipmate
	vim/bundle/godlygeek-tabular
	vim/bundle/gregsexton-gitv
	vim/bundle/honza-snipmate-snippets
	vim/bundle/jistr-vim-nerdtree-tabs
	vim/bundle/kchmck-vim-coffee-script
	vim/bundle/kien-ctrlp
	vim/bundle/majutsushi-tagbar
	vim/bundle/mattn-gist-vim
	vim/bundle/mattn-zencoding-vim
	vim/bundle/nathanaelkane-vim-indent-guides
	vim/bundle/raimondi-delimitMate
	vim/bundle/scrooloose-syntastic
	vim/bundle/sjbach-lusty
	vim/bundle/skwp-vim-ruby-conque
	vim/bundle/tomtom-tcomment_vim
	vim/bundle/tomtom-tlib_vim
	vim/bundle/tpope-vim-fugitive
	vim/bundle/tpope-vim-git
	vim/bundle/tpope-vim-haml
	vim/bundle/tpope-vim-rails
	vim/bundle/tpope-vim-repeat
	vim/bundle/vim-ruby-vim-ruby
	vim/bundle/vim-scripts-Vim-R-plugin
	vim/plugin/settings/yadr-appearance.vim
	vimrc
	zsh/omz-sorin/omz-sorin.zsh
	zsh/zshrc
6ddf8e1

@chrisnankervis chrisnankervis pushed a commit to chrisnankervis/dotfiles that referenced this issue Oct 5, 2014

@skwp skwp Prevent neocomplcache hanging in python [Fix #163] e4d7ab3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment