When I type a command in Vim, for example opening a file, I start to type the file name, and I want to press Tab and have Vim autocomplete the name. However, when I press Tab, vim puts in ^I
for some reason.
How can I make Vim tab complete?
When I type a command in Vim, for example opening a file, I start to type the file name, and I want to press Tab and have Vim autocomplete the name. However, when I press Tab, vim puts in ^I
for some reason.
How can I make Vim tab complete?
The character which starts command-line completion defaults to Tab only when nocompatible
is set. In Vi compatible mode it's CTRL-E.
This is documented in :h cmdline-completion.
You can set nocompatible
in your .vimrc file to make it work as expected.