Do you use different vimrc configuration files for different programming languages?
怪我咯
怪我咯 2017-05-16 16:35:13
0
2
690

How to switch vimrc when switching languages?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
迷茫

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):

" 开启文件类型侦测
filetype on
" 根据侦测到的不同类型加载对应的插件
filetype plugin on

Of course you can also pass

source ~/.config/vim/config/xxxx.vim

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!