El mejor lugar para guardar su configuración es en su
archivo .vimrc . Sin embargo, se obtiene demasiado pronto, verifique :h startup:
At startup, Vim checks environment variables and files and sets values
accordingly. Vim proceeds in this order:
1. Set the 'shell' and 'term' option *SHELL* *COMSPEC* *TERM*
2. Process the arguments
3. Execute Ex commands, from environment variables and/or files *vimrc* *exrc*
4. Load the plugin scripts. *load-plugins*
5. Set 'shellpipe' and 'shellredir'
6. Set 'updatecount' to zero, if "-n" command argument used
7. Set binary options
8. Perform GUI initializations
9. Read the viminfo file
10. Read the quickfix file
11. Open all windows
12. Execute startup commands
Como puede ver, su .vimrc se cargará antes que los complementos. Si lo pones :FindFileCache ., se producirá un error, ya que ese comando aún no existe. (Existirá una vez que se cargue el complemento en el paso 4.)
Para solucionar esto, en lugar de ejecutar el comando directamente, cree un comando automático. Los comandos automáticos ejecutan algún comando cuando ocurre un evento. En este caso, el evento VimEnter parece apropiado (desde :h VimEnter):
*VimEnter*
VimEnter After doing all the startup stuff, including
loading .vimrc files, executing the "-c cmd"
arguments, creating all windows and loading
the buffers in them.
Luego, simplemente coloque esta línea en su .vimrc :
autocmd VimEnter * FindFileCache .