How come the filename auto-completion works for
ls command but not for
vi in my Ubuntu 16.04.5 LTS? (Xfce4, bash). I think it used to work but not now.
From Matthieu's answer below, I tried the below. Hi, thanks, I followed your example link and followed Louis Soulez's answer. But still, the auto completion doesn't work correctly for Vi. It auto-completes to some degree, but when I don't give the start pattern at a directory entrance, it gives me no list of that directory.
My other Ubuntu machine doesn't have
/etc/bash_completion.d/vi file but auto-completion works well to the end for Vi. By the way, the list of files under
/etc/bash_completion.d in this other Ubuntu system is:
apport_completion desktop-file-validate libreoffice.sh axi-cache dkms ninja bazel gem1.9.1 pon cmake git-prompt pulseaudio-bash-completion.sh cpack grub ufw ctest initramfs-tools upstart debconf insserv
What of these could affect the completion for Vi? Do you have any other idea?