When I enter ‘set -o vi’ to use the vi-style line editing interface, tab completion stops working.
With the default command line interface, tab completion works correctly. When I enter ‘set -o emacs’ to use the emacs-style line editing interface, tab completion works correctly. It’s only a problem with the vi-style interface.
To reproduce the problem:
- Create a file called abcdefg in the current directory.
- Type ‘ls abc’. Tab completion works.
- Enter the command ‘set -o vi’, then again type ‘ls abc’. Tab completion fails.
- Enter the command ‘set -o emacs’, then again type ‘ls abc’. Tab completion works.