Why I must type :set syntax=cmake to let cmake.vim work?
- ➜ bundle cat ~/.vimrc| grep syntax syntax on syntax enable
- ➜ bundle vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 28 2022 06:54:26) 包含补丁: 1-875, 878, 884, 948, 1046, 1365-1368, 1382, 1401-1403
I find out if I open a CMakeLists.txt use vim, the syntax is not right, I must type :set syntax=cmake to make cmake.vim work.
Why this script do not work automatic when I open a CMakeLists.txt use vim.