I frequently accidentally open a binary executable, i.e. \"foo\", when I mean to open the associated source code \"foo.cpp\". The root of the problem is that tab completion, i.
Maybe you can find this useful:
set wildmenu set wildmode=longest,list
(taken and using from How do I make vim do normal (bash like) tab completion for file names?)