Created
April 30, 2011 11:42
-
-
Save adbrowne/949620 to your computer and use it in GitHub Desktop.
Install vim plugins for scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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