b55ed8ad5.2 (x86_64-apple-darwin15.6.0)#
# User configuration sourced by interactive shells
#
# Source zim
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
fi
export EDITOR='vim'
export VISUAL='vim'
x86_64 Darwin 16.1.0Instead of completing the path, the autocompletion generates the following error after typing the "vim" or "nvim" word:
[me@myhost ~]$ vim Doc...
_arguments:451: _vim_files: function definition file not found
_arguments:451: _vim_files: function definition file not found
Type "vim (space) (Tab)" anywhere.
Try removing ~/.zcompdump and ~/.zcompdump.zwc then restart your shell
@Plloi's suggestion is a good one. _vim_files is not a function provided by the completion module. Also, a quick search of your issue immediately revealed the same solution @Plloi has proposed.
https://github.com/robbyrussell/oh-my-zsh/issues/518
In the future, I recommend searching for the issue specifically. To find the link I posted above, my search query was:
"_vim_files" zsh
Oh, I almost forgot! After doing that, I suggest you run source .zlogin (from a new zsh shell) to re-bytecompile your .zcompdump file.
I'm sorry @Eriner and @Plloi, believe me I really did delete my .zcompdump file before opening that issue. In the meantime I moved some .z* files around and created some symlinks, which somehow made the issue appear again and made me believe the behaviour was consistent.
I should have deleted .zcompdump again after playing around with my .z* files, which indeed solved the problem. Thanks for pointing that out guys!
Most helpful comment
Try removing ~/.zcompdump and ~/.zcompdump.zwc then restart your shell