您的位置:首页 > 其它

How to make your vim support scala syntax highligh

2016-05-22 00:00 417 查看
摘要: vim, syntax highlighting, scala, spark

vim-scala

https://github.com/derekwyatt/vim-scala
This is a "bundle" for Vim that builds off of the initial Scala plugin modules
by Stefan Matthias Aust and adds some more "stuff" that I find useful, including
all of my notes and customizations.

##Installation

You really should be using Tim Pope's Pathogen module for Vim (http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen) if you're going to clone this repository because, well... you should.

###Using the command-line

Using wget:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do wget -O ~/.vim/$d/scala.vim https://raw.githubusercontent.com/derekwyatt/vim-scala/master/$d/scala.vim; done


Using cURL:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do curl -o ~/.vim/$d/scala.vim https://raw.githubusercontent.com/derekwyatt/vim-scala/master/$d/scala.vim; done


###Vundle
Alternatively, you can use Vundle to
manage your plugins.

If you have Vundle installed, simply add the following to your .vimrc:

Plugin 'derekwyatt/vim-scala'

and then run

:PluginInstall

to install it.

##Sorting of import statements
:SortScalaImports

There are different modes for import sorting available. For details, please
consult the vimdoc help with

:help :SortScalaImports
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: