:help cmdline-completion section, see this paragraph discusses
CTRL-D List names that match the pattern in front of the cursor.
When showing file names, directories are highlighted (see
'highlight' option). Names where 'suffixes' matches are moved
to the end.
The 'wildoptions' option can be set to "tagfile" to list the
file of matching tags.
Then jumping to the
:help suffixes page:
'suffixes' 'su' string (default ".bak,~,.o,.h,.info,.swp,.obj")
Files with these suffixes get a lower priority when multiple files
match a wildcard. See |suffixes|. Commas can be used to separate the
suffixes. Spaces after the comma are ignored. A dot is also seen as
the start of a suffix. To avoid a dot or comma being recognized as a
separator, precede it with a backslash (see |option-backslash| about
including spaces and backslashes).
Using this, you can include
/ in the
suffixes option. You probably want to pre-pend this to the default option, using
With the default setting for
:e would show everything in alphabetical order:
abc.vim bbb/ def.vim xyz.vim yo/ ze/
/ to the
suffixes setting, the directories show up last:
abc.vim def.vim xyz.vim bbb/ yo/ ze/