Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#497663: Tab completion for vim is broken





On 04.09.08 13:44 Frank Terbeck wrote:

Clint Adams <schizo@xxxxxxxxxx>:
On Thu, Sep 04, 2008 at 12:05:05PM +0300, Arto Jantunen wrote:
Typing vim and pressing tab produces the following output:

_vim:31: unmatched '

Commenting out lines 31-40 in
/usr/share/zsh/functions/Completion/Unix/_vim fixes the problem. Should
be trivial to fix properly for someone who understands zsh's compeltion
syntax (I don't).

I can't reproduce this and I don't see what the problem might be.
Is this consistent for you?

Hmm. Apparently it depends on "emulate csh" being used. I can't
reproduce with a .zshrc of only

autoload -U compinit
compinit

But can after adding emulate csh above those lines.

Anyone know which option might be the culprit here?

Yes, 'csh_junkie_quotes'.

The problem will vanish, if you unset that option after your 'emulate
csh' call.

However, I thought 'setopt no_csh_junkie_quotes' or 'emulate -L' at
the start of the file would be enough. But apparently it isn't...

I submitted a bugreport to Ubuntu about this issue:

https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/264644

The bugreport includes patches for vim, less and diff_options.

I also have setopt CSHJUNKIEQUOTES enabled in my .zshrc..

Cheers,
Wesley



Messages sorted by: Reverse Date, Date, Thread, Author