Vim E854: way too long to complete

I have a Rails Rails file that looks something like

require 'spec_helper' describe "Something" do ... end 

When I try to use Ctrl + N to autocomplete something in this file, I get:

Screenshot of the error message

Text version:

 Scanning included file: spec_helper.rb E854: path too long for completion Press ENTER or type command to continue 

If I am Ctrl + C , this completes my word perfectly.

To avoid Vim to autocomplete using included files, I can do:

 :set complete-=i 

But this is not the root of the problem.

How can i fix this?

+7
source share
1 answer

Good,

This causes me to use MacVim, and as romainl writes in the original post, the problem is due to an error in ruby.vim. In this overflow of the post stack, the third candidate for the answer actually offers a possible reason (correctly) that is due to an error in ruby.vim (the old version uses an outdated function).

MacVim (Snapshot 64) comes with the old rails.vim, so to fix this I went into MacVim.app/Contents/Resources/vim/runtime/ftplugin and made wget in the raw file in the official rails.vim repo plugin

This fixed the problem for me.

+8
source

All Articles