Pavan Maddamsetti writes:
> Thank you for the clarification, Theo. I would like to politely submit
> the following diff for common/options.c:
>
> @@ -345,7 +345,6 @@ opts_init(SCR *sp, int *oargs)
> "directory=%s", (s = getenv("TMPDIR")) == NULL ? _PATH_TMP : s);
> OI(O_TMP_DIRECTORY, b1);
> OI(O_ESCAPETIME, "escapetime=1");
> - OI(O_FILEC, "filec=\t");
> OI(O_KEYTIME, "keytime=6");
> OI(O_MATCHTIME, "matchtime=7");
> OI(O_REPORT, "report=5");
>
> The reverse was imported from FreeBSD in v.1.19. Unfortunately, it
> seems that the ex parser removes backslash escapes completely, making
> it impossible to use :s/^/\t/ or something like that. Yes, I could
> install vim or modify .exrc.
Seems a bit much when all you need is to press ^V and then tab. Just
like using any other special character (backspace, linefeed, etc.) in a
:s expression. It's what ^V is there for--the manpage describes it as
the "literal next" character.
> But I would much prefer to see the old
> behavior come back. If you need to view the files in the current
> directory, you can just use :!ls.
The point of filec is not to view filenames when pressing tab, but to
complete them, much like the shell. This feature is very convenient
when, e.g., using :!, :r, or :e.