vim显示代码语法高亮

xiaoxiao2021-03-01  13

设置 ~/.vimrc

set nocompatible set backspace=indent,eol,start set ts=4 set keymodel=startsel set nu set autoindent set ruler syntax on colorscheme torte set gfn=Anonymous:h12 set anti

 获取scala的语法高亮的设置信息

git clone https://github.com/scala/scala-dist.git

 

从scala-dist目录当中拷贝几个目录到如下路径:

 

~/.vim/

 

 

 最终结果如下:

 

tree ~/.vim /home/gkbusy/.vim ├── ftdetect │   └── scala.vim ├── indent │   └── scala.vim ├── plugin │   └── 31-create-scala.vim └── syntax └── scala.vim

 

相关资源:vim加载systemverilog语法高亮文件:sytemverilog.vim
转载请注明原文地址: https://www.6miu.com/read-4050143.html

最新回复(0)