I am editing a non-standard file of Vim settings and the file has no syntax highlighting because Vim is not aware that the file contains settngs for itself.eg - These lines are not highlighted by Vim because it doesn't know that they are vim settings although the man .vimrc file is syntax-highlighted appropriately Highlight trailing spaces so/4617059:highlight ExtraWhitespace ctermbg=red guibg=red:match ExtraWhitespace /\s\+$/Is there some way to let Vim be aware that the file has Vim settings?
What options make Vim aware that the file editing is for vim settings?
syntax highlighting
First, you need to enable syntax highlighting and filetype plugins. Ensure that you have these lines in your vimrc file:syntax onfiletype plugin onWith that, it should suffice to use the .vim extension in the filename, e.g. extra_settings.vim. Alternatively, you can name the file something that contains the word vimrc, e.g. extra_vimrc.If you have modeline enabled, then you can also use a comment at the top or bottom of the file: vim: ft=vimSee :h modeline. Note that there are two forms. The one above is of the first form, which should not contain the keyword set.implied to be setable options.