Why should I use Vim if this is the case? The main thing I like about Vim is that I can use the same set of configurations no matter what file type or operating system!
Of course, some adjustments will be made for different situations. You can check it out in Vim :help ftplugin.
Just turn on file type detection, no need to switch vimrc.
Allow loading of different plug-ins based on different languages (for example, C++’s syntax highlighting plug-in is different from Python’s):
Of course you can also pass
This form is used to manage the configuration of multiple languages.
Why should I use Vim if this is the case? The main thing I like about Vim is that I can use the same set of configurations no matter what file type or operating system!
Of course, some adjustments will be made for different situations. You can check it out in Vim
:help ftplugin
.