spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

Neocomplcache causing Vim slow down #275

Closed tolusonaike closed 10 years ago

tolusonaike commented 11 years ago

i am running macvim and spf13-vim 3.0

I noticed slow down in my VIM movement and i have pinned down the culprit to neocomplcache. I noticed this issue hasnt been reported here so maybe it was my setup. I setup a clean vim/spf13-vim install and i am still getting the slow down in performance

jakzal commented 11 years ago

I'm actually experiencing something similar with macvim.

Autocompletion itself is so slow that it is unusable (necomplcache was suppose to speed it up).

jcbwlkr commented 11 years ago

I feel like I have had some similar issues but only when I work in some larger files (4k+ lines)

jaywilliams commented 11 years ago

I'm in the same boat as well. When editing large files, it's painfully slow. I sometimes enable Paste mode (F12) to help alleviate the problem.

ashleyhindle commented 11 years ago

As am I. It's currently unusable, I'm going to have to remove it even though I installed spf13 mostly for the auto completion.

Moddus commented 11 years ago

Same problem here. I using macvim and in large c-Files is macvim blocked for 1-2 Minutes.

jasonmorganson commented 11 years ago

The discussion on the group here: https://groups.google.com/forum/#!topic/spf13-vim-discuss/jq-7LP2PPEg

Points to tips for neocomplcache here: https://github.com/Shougo/neocomplcache/wiki/neocomplcache-tips%3A

I found it was helpful to switch to only loading autocomplete on TAB. YMMV.

jasonmorganson commented 11 years ago

I switched to the YouCompleteMe plugin. It feels faster to me.

In the authors words of the README:

In essence, YCM obsoletes the following Vim plugins because it has all of their features plus extra:

  • clang_complete
  • AutoComplPop
  • Supertab
  • neocomplcache
spf13 commented 11 years ago

I've been looking into this. Big issue is the install isn't easily automated and unfortunately requires the vundle installed prior to some manual steps.

Steve Francia spf13.com @spf13

On Apr 13, 2013, at 5:47 PM, Jason Morganson notifications@github.com wrote:

I switched to the YouCompleteMe https://github.com/Valloric/YouCompleteMeplugin. It feels faster to me.

In the authors words of the READMEhttps://github.com/Valloric/YouCompleteMe#readme :

In essence, YCM obsoletes the following Vim plugins because it has all of their features plus extra:

chrisnicola commented 11 years ago

Yeah I've switched to YouCompleteMe as well, but I understand why it might not work so well with SPF13. However I've noticed another problem. While I can disable neocomplcache by removing it from my bundle groups, it still runs all the neocomplcache bindings in .vimrc. I've added a check to see if the bundle group is there but I'm wondering if that should be by design or not?

spf13 commented 11 years ago

We've recently committed a fix for this. Just update to latest version.

Steve Francia spf13.com @spf13

On Jun 8, 2013, at 11:30 AM, Chris Nicola notifications@github.com wrote:

Yeah I've switched to YouCompleteMe as well, but I understand why it might not work so well with SPF13. However I've noticed another problem. While I can disable neocomplcache by removing it from my bundle groups, it still runs all the neocomplcache bindings in .vimrc. I've added a check to see if the bundle group is there but I'm wondering if that should be by design or not?

— Reply to this email directly or view it on GitHubhttps://github.com/spf13/spf13-vim/issues/275#issuecomment-19150402 .

Shougo commented 11 years ago

Hi, I'm author of neocomplcache.

Neocomplcache causing Vim slow down

You can use neocomplete.vim instead of neocomplcache. It is faster than neocomplcache. But it requires Vim 7.3.885 and if_lua.

cureau commented 10 years ago

For people who want to use neocomplache, but disable auto complete (i.e., use TAB instead), this will fix your problem. Add the following to your .vimrc.local:

let g:neocomplcache_disable_auto_complete = 1

inoremap <expr><TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : "\<C-x>\<C-u>"
function! s:check_back_space()"{{{
    let col = col('.') - 1
    return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}

https://github.com/Shougo/neocomplcache.vim/wiki/neocomplcache-tips%3A

bronzehedwick commented 10 years ago

@tolusonaike, has the fixes worked for you? If so please close :)

vitalyisaev2 commented 8 years ago

Fresh spf13 installation. Auto complete in small py and sls (SaltStack) files is very slow and seem to perform as CPU-bound.

bmeynell commented 7 years ago

Fresh spf13 installation. Auto complete in small py and sls (SaltStack) files is very slow and seem to perform as CPU-bound.

Same here. Autocomplete unbearably slow for large PHP files.

bmeynell commented 7 years ago

Same here. Autocomplete unbearably slow for large PHP files.

I just tried setting :set nocursorline as per this thread and see a marked slight improvement in typing speed. Good Small step forward.

spf13 commented 7 years ago

Neocomplcache is quite slow as it's implemented entirely in vimscript. Much faster is neocomplete if you can use that.

On Wed, Mar 8, 2017 at 11:34 AM Ben Meynell notifications@github.com wrote:

Same here. Autocomplete unbearably slow for large PHP files.

I just tried setting :set nocursorline as per this thread https://groups.google.com/forum/#!topic/spf13-vim-discuss/jq-7LP2PPEg and see a marked improvement in typing speed. Good step forward.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spf13/spf13-vim/issues/275#issuecomment-285092430, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKlZCp5GvKoSOMN0jUQ01XoWxcMwibAks5rjtijgaJpZM4AYqfT .

Shougo commented 7 years ago

deoplete is more faster if you can use neovim.

bmeynell commented 7 years ago

@spf13 - As far as I can tell I'm already using neocomplete (I don't see a reference to Neocompletecache) in the bundles list, but DO see neocomplete.vim):

~/.vim/bundle $ ls
auto-pairs           neosnippet           restore_view.vim  vim-addon-mw-utils    vim-css3-syntax           vim-less              vim-signify           vundle
conflict-marker.vim  neosnippet-snippets  rust.vim          vim-airline           vim-cucumber              vim-litecorrect       vim-snippets          webapi-vim
ctrlp-funky          nerdcommenter        salt-vim          vim-airline-themes    vim-cucumber-align-pipes  vim-markdown          vim-surround          wildfire.vim
ctrlp.vim            nerdtree             sessionman.vim    vim-bufferline        vim-easymotion            vim-multiple-cursors  vim-textobj-indent
emmet-vim            PIV                  syntastic         vim-coffee-script     vim-fugitive              vim-nerdtree-tabs     vim-textobj-quote
fonts                pythoncomplete       tabular           vim-coloresque        vim-haml                  vim-over              vim-textobj-sentence
gist-vim             python_match.vim     tagbar            vim-colors            vim-indent-guides         vim-php-namespace     vim-textobj-user
HTML-AutoCloseTag    python-mode          tlib_vim          vim-colorschemes      vim-javascript            vim-preview           vim-toml
matchit.zip          python.vim           undotree          vim-colors-solarized  vim-json                  vim-rails             vim-twig
neocomplete.vim      rainbow              vim-abolish       vim-commentary        vim-jst                   vim-repeat            vim-wordy
~/.vim/bundle $ grep -ir Neocompletecache *
~/.vim/bundle $

Any other suggestions? 💃