Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Valodim/vim-zsh-completion

omnicompletion via zsh's completion engine
https://github.com/Valodim/vim-zsh-completion

Last synced: 3 months ago
JSON representation

omnicompletion via zsh's completion engine

Awesome Lists containing this project

README

        

# vim-zsh-completion

This is a vim omnicompletion which captures completions from zsh's completion
engine. This is an application of
[this](https://github.com/Valodim/zsh-capture-completion) zsh completion
capturing method.

## Demo

![demo](http://mugenguild.com/~valodim/vim-zsh-completion.gif)

## Status

The script works reasonably well for most cases I tested.

While it does work reasonably well, the way completion results are gathered
from zsh is a HUGE HACK, so don't be too surprised with inexplicable behavior.

## Installation

Install using [vundle](https://github.com/gmarik/vundle):

Bundle 'Valodim/vim-zsh-completion'
BundleInstall

The script is set as omnicompletion (^X^O) for zsh files automatically. It
plays well with YouCompleteMe from what I have seen, although it needs to be
manually triggered like most semantic completions.

You can also bind it to user completion (^X^U) for use outside of zsh script
files using:

:set completefunc=zsh_completion#Complete