vim-cmake-syntax
vim-cmake-syntax copied to clipboard
Help: Why I must type :set syntax=cmake to let this script work?
- ➜ 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
- vim-cmake-syntax is download today.
- ➜ bundle cat ~/.vimrc| grep syntax syntax on syntax enable
I find out if I open a CMakeLists.txt use vim, the syntax is not right, I must type :set syntax=cmake to make this scrpit work.
Why this script do not work automatic when I open a CMakeLists.txt use vim.