Calling omnicompletion for every keypress in vim

后端 未结 3 435
庸人自扰
庸人自扰 2021-01-14 17:24

I have a vim script that uses a one line window to get a filename pattern from the user. This pattern can be completed to a full filename from a database if you press CTRL-X

3条回答
  •  有刺的猬
    2021-01-14 17:39

    You should look at :h autocmd. I believe the InsertChange event could be used to do what you want.

提交回复
热议问题