Automatically fill only filenames with bash when starting vim?

Is there any plugin for bash that will change the tab when I try to open a file using vim? For example, if I have a directory with the following files:

  • Foo /
  • foo.c
  • Foo
  • bar.c
  • Bar /

(where foo / and bar / are directories and foo is a binary file)

and I do this:

vim f

and then click the tab, is there a way to autocomplete to ignore the binary files foo / and foo and automatically fill it with "foo.c", since this is the only text file starting with f?

+5
source share
1 answer

! , bash autocomplete . Debian /etc/bash_completion.

Debian /etc/bash_completion. , , - .

+2

All Articles