Help us understand the problem. What is going on with this article?

zshでvim+Tabでエラーになる時の対処法

More than 1 year has passed since last update.

もしかしたら重複記事があるのかもしれませんが、備忘録として投稿

問題

vim 

⇡でtabで補完しようとすると

_arguments:451: _vim_files: function definition file not found

と出て補完ができない。
450とか他の数値の場合もあるようです。

解決策

rm ~/.zcompdump
exec $SHELL -l

これで直ります。

私の場合は後ろに[.zcompdump-ユーザー名]という感じのファイルが生成されていて、それも消す必要がありました。

追記(16/05/07)

より詳しい解説を見つけました。
zshで"autoload -Uz compinit && compinit -u"を実行すると"compinit:473: bad floating point constant"のエラーが出る

追記(16/11/02)

zplug入れてる場合は以下の場合もあるようです

rm ~/.zplug/zcompdump
exec $SHELL -l

zsh + vim で補完されない、、場合。

Asuforce
こんにちは、本業は SRE ですが色々やってます
https://asuforce.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした