作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Ubuntu 16.04 LTS 下使用 vim 使用 nesC 语言。
我的问题是当我编辑代码时,突出显示工作正常(如第一张图片),但当我保存、退出并再次打开文件时,突出显示消失(如第二张图片)。
非常感谢大家!
PS:我已经设置了语法。当我阅读其他人的代码时,突出显示按预期工作。
最佳答案
vim
突出显示基于文件扩展名的现有文件的语法(您使用哪一个?)。幸运的是,有一些扩展可以让你修复它。大概this就是这样的延伸。 This也很有帮助。简而言之,它们描述了一种方法来突出显示您选择的扩展,例如用于 C++。从帖子:
After digging around I found the solution. Add the following to ~/.vimrc (the vim configuration file):
syntax on
filetype on
au BufNewFile,BufRead *.lmx set filetype=xml
关于ubuntu - Vim 突出问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39575250/
有没有一种方法可以“标记”对象的属性,使它们在反射中“突出”? 例如: class A { int aa, b; string s1, s2; public int AA
我是一名优秀的程序员,十分优秀!