When I'm opening a new file in Vim and I use tab completion, it completes the whole file name instead of doing the partial match like Bash does. Is there an option to make this file name tab completion work more like Bash?
How to make Vim do normal (Bash-like) tab completion for file names
vim
Related Topic
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Your most productive shortcut with Vim
- Regex – How to make the match non greedy in vim
- Git – How to make Git use the editor of the choice for commits
- Tab completion in Vim Commands
- Bash – How to make bash tab completion behave like vim tab completion and cycle through matching matches
- How to make vim paste from (and copy to) system’s clipboard
- Move cursor to end of file in vim
Best Answer
I personally use
When you type the first tab hit, it will complete as much as possible. The second tab hit will provide a list. The third and subsequent tabs will cycle through completion options so you can complete the file without further keys.
Bash-like would be just
but the full is very handy.