问题

软件 >> CMake
Questions in category: CMake (CMake).

vim 打开 CMakeLists.txt 产生的错误

Posted by haifeng on 2024-12-05 16:45:24 last update 2024-12-05 16:45:24 | Answers (0) | 收藏


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