h1

Scala syntax highlighting in VIM

November 2, 2010

To get SCALA syntax highlighting in Vim do the following:

1. Download the scala.vim file from here http://github.com/vim-scripts/scala.vim

2. Save it somewhere you can find it (e.g. your ~/.vim/syntax directory; you may need to create this)

3. Edit your ~/.vimrc file and add the following:

au BufRead,BufNewFile *.scala set filetype=scala
au! Syntax scala source ~/.vim/syntax/scala.vim

4. open a .scala file in vim and you should find some basic syntax highlighting working. Great!

Advertisements

2 comments

  1. Reblogged this on Prosto, szybko, celnie..


  2. Thank you!!! Works perfectly!!!



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: