Friday, March 22, 2013

Re: :edit - how to prioritize listed files by their extension?

The "set suffixes" indeed order, but it doens't suggest the first
element of the list, which requires me to press <tab> twice. (I know
that sounds i'm completely lazy...). Perhaps 'set wildignore' is the
best vi can do at this moment.

Thanks anyway.



On Fri, Mar 22, 2013 at 7:23 AM, Tim Chase <vim@tim.thechases.com> wrote:
> On 2013-03-21 12:49, leo wrote:
>> Is there a way of prioritize the listed files by their extension
>> after a ":e<tab>"? I mean, like in zsh completion system?
>
> I don't know how zsh does it, but the 'suffixes' option allows you to
> specify extensions of a lower-priority so that they get shown
> afterward. My .vimrc on my work machine has
>
> set suffixes+=.pyc
> set suffixes+=.pyo
>
> to prevent vim from suggesting Python's compiled output before the
> actual .py source file.
>
> -tim
>
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment