vim 打开 CMakeLists.txt 产生的错误
Error detected while processing BufRead Autocommands for "CMakeLists.txt"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>3_SynSet[25]..script /home/haifeng/.vim/syntax/cmake.vim:
line 15:
E492: Not an editor command: ^M
line 16:
E488: Trailing characters: ^M
line 4974:
E488: Trailing characters: ^M
line 4977:
E171: Missing :endif
Error detected while processing BufRead Autocommands for "CMakeLists.txt"..FileType Autocommands for "*"..function <SNR>14_LoadIndent[14]..script /home/haifeng/.vim/indent/cmake.vim:
line 11:
E492: Not an editor command: ^M
line 12:
E488: Trailing characters: ^M
line 97:
E488: Trailing characters: ^M
line 98:
E171: Missing :endif