Re: how to control the syntax hightlighting style?
- Liu Wen wrote:
>What version of Vim are you using, and what is the exact filename?
> for example , an C program file ending in .bak, so vi would not
> highlight it. can I force it to ?
When I do
with Vim 5.7, vim(*) knows to strip off the ".bak" and set the filetype
(and syntax) as it would for foo.c . In other words, I get C syntax
highlighting. This does not work with foo_c.bak, for example, or foo.bak
(*) It is not the vim program itself, but the script
$VIMRUNTIME/filetype.vim that does this processing. Have a look!