How to switch vimrc when switching languages?
It is only necessary to turn on document type detection without switching vimrc.
Allow different plug-ins to be loaded based on different languages (e.g. syntax highlighting plug-in for C++ is different from python):
"Turn on document type detection filetype on "Load corresponding plug-ins according to different detected types filetype plugin on
Of course, you can also pass
source ~/.config/vim/config/xxxx.vim
This form manages the configuration of multiple languages.