cespare / vim-toml

Vim syntax for TOML
MIT License
625 stars 40 forks source link

Use `setfiletype` in ftdetect/toml.vim to avoid loading twice. #44

Closed averms closed 5 years ago

averms commented 5 years ago

This is the recommended way to do ftdetect. Here is an example: https://github.com/vim/vim/blob/1f20daa1d784e2d8ae13db5b9c8abbb648dd2a03/runtime/filetype.vim#L1491