How to make your vim support scala syntax highligh
2016-05-22 00:00
417 查看
摘要: vim, syntax highlighting, scala, spark
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:
Using cURL:
###Vundle
Alternatively, you can use Vundle to
manage your plugins.
If you have Vundle installed, simply add the following to your .vimrc:
and then run
to install it.
##Sorting of import statements
:SortScalaImports
There are different modes for import sorting available. For details, please
consult the vimdoc help with
vim-scala
https://github.com/derekwyatt/vim-scalaThis 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
相关文章推荐
- [leetcode]【数组】33. Search in Rotated Sorted Array
- 如何用正则表达式匹配包括换行符的任意字符?
- web前端实习
- Android Studio使用Lambda
- IDEA导入Maven项目(Spring+Mybatis)后登录报错:找不到对应的Dao方法
- web应用中的路径
- 从bookstore项目中学到的(1)
- EL表达式
- 标签导航和树形结构导航整合使用步骤
- 应用程序设置与配置
- UISplitViewController 分屏控制器
- TextKit 文本编辑
- UITableView初识(1)
- UITableView--多组数据显示
- C Primer Plus 第5章 运算符、表达式和语句 5.7 一个示例程序
- 数据库定时备份原理,代码
- FTP方式的文件上传和下载的Java代码
- C++左右值及引用类型关系
- C++函数模板参数推断
- 开发Yii2过滤器并通过behaviors()行为调用