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

Re: Adding a prefix to certain filename completions



Bart Schaefer wrote:

> I had assumed there was already an _vim completion, but there's not.
> So just write one.
> 
> _vim() {
>   [[ $PREFIX = +* ]] && _files -P './' || _files
> }
> compdef _vim vim

Ah, that’s great!  I’ll try to find some time today to actually write a
complete _vim completion.  Thanks!,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}



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