Skip to content

Instantly share code, notes, and snippets.

@adbrowne
Created April 30, 2011 11:42
Show Gist options
  • Save adbrowne/949620 to your computer and use it in GitHub Desktop.
Save adbrowne/949620 to your computer and use it in GitHub Desktop.
Install vim plugins for scala
" Based on example from here: http://stackoverflow.com/questions/3626203/text-editor-for-scala
set nocompatible "Not vi compativle (Vim is king)
""""""""""""""""""""""""""""""""""
" Syntax and indent
""""""""""""""""""""""""""""""""""
syntax on " Turn on syntax highligthing
set showmatch "Show matching bracets when text indicator is over them
colorscheme delek
" Switch on filetype detection and loads
" indent file (indent.vim) for specific file types
filetype indent on
filetype on
set autoindent " Copy indent from the row above
set si " Smart indent
""""""""""""""""""""""""""""""""""
" Some other confy settings
""""""""""""""""""""""""""""""""""
" set nu " Number lines
set hls " highlight search
set lbr " linebreak
" Use 2 space instead of tab during format
set expandtab
set shiftwidth=2
set softtabstop=2
#!/bin/sh
for d in ftdetect indent syntax
do
mkdir -p ~/.vim/$d
wget -O ~/.vim/$d/scala.vim lampsvn.epfl.ch/trac/scala/export/HEAD/scala-tool-support/trunk/src/vim/$d/scala.vim
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment