For most files, Vim (terminal) is syntax highlighting properly without any issues. However, I am unable to get it to work for CMakeLists.txt
:
Neovim has no trouble with syntax highlighting, neither does gvim. I also tried this plugin with no effect: https://github.com/pboettch/vim-cmake-syntax
I have the following in my .vimrc
filetype plugin indent on
syntax on
set t_Co=256
au BufNewFile,BufRead *.cmake,CMakeLists.txt set filetype=cmake
# tried this variation too
# autocmd BufEnter *.cmake,CMakeLists.txt,*.cmake.in :setlocal filetype=cmake