`
christen
  • 浏览: 11228 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Scala and Vim support on Linux

 
阅读更多
来自:http://dhruba.name/2009/07/13/installing-java-scala-and-vim-support-on-linux/

安装JDK

$ chmod u+x jdk-6u14-linux-i586.bin
$ ./jdk-6u14-linux-i586.bin

$ mv jdk1.6.0_14/ /opt/

$ cd /opt/
$ ln -s jdk1.6.0_14/ java

export JAVA_HOME="/opt/java"
export PATH="${JAVA_HOME}/bin:${PATH}"

安装Scala

$ tar -xvzf scala-2.7.5.final.tgz

$ mv scala-2.7.5.final/ /opt/

$ cd /opt/
$ ln -s scala-2.7.5.final/ scala

export SCALA_HOME="/opt/scala"
export PATH="${SCALA_HOME}/bin:${JAVA_HOME}/bin:${PATH}"


VIM语法高亮

$ mkdir -pv ~/.vim/ftdetect
$ mkdir -pv ~/.vim/indent
$ mkdir -pv ~/.vim/syntax

$ wget --no-check-certificate https://lampsvn.epfl.ch/trac/scala/export/18260/scala-tool-support/trunk/src/vim/ftdetect/scala.vim -O ~/.vim/ftdetect/scala.vim
$ wget --no-check-certificate https://lampsvn.epfl.ch/trac/scala/export/18260/scala-tool-support/trunk/src/vim/indent/scala.vim -O ~/.vim/indent/scala.vim
$ wget --no-check-certificate https://lampsvn.epfl.ch/trac/scala/export/18260/scala-tool-support/trunk/src/vim/syntax/scala.vim -O ~/.vim/syntax/scala.vim



vim ~/.vimrc

set nocompatible
set nu
syntax on
filetype indent on
set ts=4
set expandtab
set autoindent
set ic
set hls
set lbr
colorscheme delek
分享到:
评论
2 楼 vincent_hv 2013-08-18  
解决问题了,膜拜
1 楼 lord_is_layuping 2012-02-18  
对我有用,终于可以高亮了

相关推荐

    scala 2.11.12 window64 + linux版本

    这个资源包含Scala的2.11.12版本,适用于Windows和Linux操作系统。Scala 2.11.x系列是该语言的一个长期支持(LTS)版本,意味着它会得到更长时间的安全更新和支持。 对于Windows用户,`winx64.msi`是一个安装程序,...

    Scala and Spark for Big Data Analytics.pdf

    aspects of its history, purposes, and how to install Scala on Windows, Linux, and Mac OS. After that, the Scala web framework will be discussed in brief. Then, we will provide a comparative analysis ...

    Scala and Spark for Big Data Analytics

    Spark, built on Scala, has gained a lot of recognition and is being used widely in productions. Thus, if you want to leverage the power of Scala and Spark to make sense of big data, this book is for ...

    Scala 2.12.0 (Linux)

    Scala 2.12.0 是一个针对 Linux 平台的高级编程语言版本,它将函数式编程和面向对象编程的思想紧密结合,为开发者提供了一种高效、强大的编程工具。Scala 在 Java 虚拟机(JVM)上运行,因此可以充分利用 JVM 的广泛...

    scala-2.11.0-M8 for linux

    scala 2.11.0 M8 for linux。 Scala combines object-oriented and functional programming in one concise, high-level language. Scala's static types help avoid bugs in complex applications, and its JVM and...

    scala-2.12.0linux.rar

    这个"scala-2.12.0linux.rar"文件是Scala编程语言的2.12.0版本,专为Linux操作系统设计。Scala 2.12.x系列是其主版本之一,带来了许多性能改进和新功能,旨在提升开发效率和代码可读性。 在描述中提到,该压缩文件...

    scala-2.12.1 for Linux

    标题“scala-2.12.1 for Linux”表明我们讨论的是Scala的特定版本2.12.1,这个版本是为Linux操作系统设计的。Scala的版本号通常遵循主版本号.次要版本号.修订版本号的格式,这里的2.12.1意味着这是一个稳定版本,...

    Scala and Spark for Big Data Analytics epub

    Scala and Spark for Big Data Analytics 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Reactive.Programming.with.Scala.and.Akka.1783984341.epub

    Harness reactive programming to build scalable and fault-tolerant distributed systems using Scala and Akka About This Book Use the concepts of reactive programming to build distributed systems ...

    Functional Programming Patterns in Scala and Clojure(Pragmatic,2013)

    This book introduces you, the experienced Java programmer, to Scala and Clojure: practical, production-quality languages that run on the JVM and interoperate with existing Java. By using both the ...

    Linux中Scala和Spark安装

    ### Linux中Scala和Spark安装教程 #### Scala安装步骤详解 在深入探讨如何在Linux系统上安装Scala和Spark之前,我们首先需要确保系统已正确安装了JDK,因为Scala和Spark都依赖于Java运行环境。 ##### 步骤1:安装...

    Reactive Programming with Scala and Akka mobi

    Reactive Programming with Scala and Akka 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    scala-sbt-scala编译工具

    Starts the Scala REPL with project classes and dependencies on the classpath Modularization supported with sub-projects External project support (list a git repository as a dependency!) Parallel task ...

    2018 Scala for Java Developers: A Practical Primer

    Master the fundamentals of Scala and understand its emphasis on functional programming that sets it apart from Java. This book will help you translate what you already know in Java to Scala to start ...

    testing in scala

    Testing in Scala also gives insight on how to integrate coverage tools, continuous integration, web acceptance frameworks, and Java testing frameworks that you already know and love.

    functional programming in scala and impatient.pdf

    《Functional Programming in Scala》与《Scala for the Impatient》是两本关于Scala编程语言的重要书籍,专注于函数式编程思想和Scala语言的深入学习。Scala是一种多范式编程语言,结合了面向对象和函数式编程的...

    Hands-on Scala.js

    Scala.js的学习资料,来源于 http://lihaoyi.github.io/hands-on-scala-js/#Hands-onScala.js。为方便在电子书上阅读而整理。 删除了电子书上不能显示的示例。可以结合原文边学边练。

    scala and lift 4 books

    Scala和Lift是两个在Java平台上非常重要的技术,它们在构建现代、高性能的Web应用程序方面发挥着关键作用。本文将深入探讨这两个主题以及相关的书籍资源。 首先,让我们从Scala开始。Scala是一种多范式编程语言,它...

    scala-2.12.14.zip&scala-2.12.11.tgz Linux版本压缩包.rar

    这里我们主要关注Linux版本的"scala-2.12.11.tgz"。 Scala 2.12.x系列是该语言的一个稳定分支,其中的版本号表示主版本号、次版本号和修正版本号。2.12.14和2.12.11都是在2.12主线上的更新,14和11分别代表它们的...

Global site tag (gtag.js) - Google Analytics