-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
43 lines (32 loc) · 918 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
set expandtab
set shiftwidth=2
set tabstop=2
filetype off
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#incubate()
call pathogen#helptags()
filetype plugin indent on
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
set number
set cursorline
set title
set list
set listchars=tab:>-,trail:-,nbsp:%
set nohlsearch
set incsearch
set history=100
autocmd BufWritePre * :call <SID>StripWhite()
fun! <SID>StripWhite()
%s/[ \t]\+$//ge
%s!^\( \+\)\t!\=StrRepeat("\t", 1 + strlen(submatch(1)) / 8)!ge
endfun
inoremap <lt>/ </<C-X><C-O>
autocmd BufRead *_spec.rb syn keyword rubyRspec describe context it specify it_should_behave_like before after setup subject its shared_examples_for shared_context let
highlight def link rubyRspec Function
let g:tex_flavor='latex'
" Haskell stuff
let g:haddock_browser="/usr/bin/firefox"
au BufEnter *.hs compiler ghc