Vim - how to run a command immediately when starting vim?

前端 未结 5 492
野的像风
野的像风 2020-12-02 06:46

I have a plugin (FindFile.vim) that needs to run :FindFileCache . whenever I start vim to gather a file cache for quick opening.. I have to run this every time

5条回答
  •  时光取名叫无心
    2020-12-02 07:18

    Create a file named ~/.vim/after/plugin/whatever_name_you_like.vim and fill it with

    FindFileCache .
    

    The order in which scripts are read and executed in the vim directories is described in :help 'runtimepath'

提交回复
热议问题