Languages all have different settings. The most common one is indentation style.
How do you set VIM up to automatically use the settings you prefer, for your language?
.vimrc (either a local one or your
~ one). Then add the following:
autocmd FileType html setlocal <settings_you_want_to_set>
For example, I've just added:
autocmd FileType yaml setlocal ts=2 sw=2 expandtab
If you don't know the FileType, you can open up a file of the type in question (for me it was a
.yml) and run
Hopefully this was useful for you!
Follow me on dev.to or on Twitter @connorbode for more VIM, Linux, and other tips as I discover new things!