Description of problem: Autocompletion of zsh with vim is broken. The zsh compinit system returns an error when trying to autocomplete file or directory names for vim invocations. Although the bug is fairly minor, it is really annoying. Version-Release number of selected component (if applicable): zsh-4.3.4-4.fc8 How reproducible: everytime Steps to Reproduce: 1. open zsh shell 2. run autoload -U compinit 3. run compinit 4. type 'vi a' and then hit tab to complete the filename 5. you'll get the following error : _arguments:439: _vim_files: function definition file not found Actual results: Get _arguments:439: _vim_files: function definition file not found Expected results: Should get autocompletion of file or directory instead Additional info: This doesn't occur if vi is specified as /bin/vi
I can't reproduce this with "zsh -f" so my guess is that you have something in ~/.zshrc that is causing this ... try searching for zstyle?
I also get that but when zsh -f is run, vi is set to point to /bin/vi . If you alias vi to /usr/bin/vim so that you can get syntax highlighting and other features of vim-enhanced the error will reappear. E.g. [XXXX@test ~]\$ zsh -f test% autoload -U compinit test% compinit test% which vi /bin/vi test% alias vi=/usr/bin/vim test% vi ~/.fh _arguments:439: _vim_files: function definition file not found
I just tried the exact above sequence and I don't see the error. Do you have the file: /usr/share/zsh/4.3.4/functions/_vim ?
The problem was in the .zcompdump in my account's home directory. After deleting the file, the error went away. Unfortunately, I didn't back up the file before deleting it so I'm not sure what was going wrong in there.