When trying to autocomplete a file name for vi, files ending in .log are not listed as options. How can I correct this?

link|improve this question
What does the command complete vi output? – bmk Apr 8 '11 at 8:55
feedback

1 Answer

I guess you have somewhere (maybe in your ~/.cshrc) specified something like this:

complete vi 'n/*/f:^*.{o,a,dvi,gz,z,Z,log}/'

You should change it (resp. override it), e.g.:

complete vi 'n/*/f:^*.{o,a,dvi,gz,z,Z}/'

Explanation: n means "Next-word completion", * is a glob-pattern to match the beginning of the word on the command line, f means filename, ^*.{o,a,dvi,gz,z,Z} means that the filename must not end with .o, .a, .dvi, .gz, .z or .Z.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.