FileType-Specific Settings
Vim can run commands when reading or writing files, and this is known as an autocommand
. Automatic commands can be combined with FileType
and set
to apply settings that only apply to a certain type of file. This takes the form au FileType type set commands
. For example, to ensure…