dag / vim-fish

Vim support for editing fish scripts
MIT License
431 stars 59 forks source link

Omni completion #3

Closed dag closed 11 years ago

dag commented 11 years ago

Hooking into fish's completions would be really cool, but it would be a good start to complete functions, builtins and commands.

functions -a
builtin -n
for path in $PATH
    for bin in $path/*
        if test -x $bin
            basename $bin
        end
    end
end
dag commented 11 years ago

Turns out hooking into fish's completions might be easy:

system('fish -c "complete -C'.shellescape('vim -').'"')