vim显示代码语法高亮

设置 ~/.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)