现在的位置: 首页 > 综合 > 正文

vim syntax highlighting for scala : A bash one liner

2018年04月08日 ⁄ 综合 ⁄ 共 548字 ⁄ 字号 评论关闭

Just for posterity, here is a Bash one-liner to download the VIM plugins to handle syntax highlighting for Scala: 

1 $
mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do wget --no-check-certificate -O ~/.vim/$d/scala.vimhttps://raw.githubusercontent.com/scala/scala-dist/master/tool-support/src/vim/$d/scala.vim;
done

Update 

Here is a solution using cURL submitted by Joe: 

1 mkdir
-p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do curl -o ~/.vim/$d/scala.vimhttps://raw.githubusercontent.com/scala/scala-dist/master/tool-support/src/vim/$d/scala.vim;
done

抱歉!评论已关闭.