Prevent vim from opening binary files accidentally?

后端 未结 3 1693
一个人的身影
一个人的身影 2021-02-02 15:31

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.

3条回答
  •  Happy的楠姐
    2021-02-02 16:11

    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?)

提交回复
热议问题