Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Vim 的新手,有点困惑。
我正在使用gcov(通过clang),并通过将它放在我的vim文件夹中从这里.gcov安装了一个vim语法文件- 但突出显示没有出现。syntax
gcov
.gcov
syntax
我错过了什么?谢谢!
您需要在 for 语法突出显示中的这两行~/.vimrc才能正常工作:
~/.vimrc
filetype on syntax on
因为它通常是人们想要的,所以您可能应该使用:
filetype plugin indent on syntax on
第一行确保 Vim 识别文件类型,加载任何文件类型特定的选项/映射/autocmds 并应用文件类型的内置缩进规则。
第二行激活 synatx 突出显示。