aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/ruby.vim
blob: fe7315deb928c9b88324eb79a380768af9722a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" Ruby vim settings

" Indentation
setlocal expandtab
setlocal tabstop=2
setlocal softtabstop=2
setlocal shiftwidth=2


" Don't preserve indentation on empty lines
inoremap <buffer> <CR> <CR>
nnoremap <buffer> o o
nnoremap <buffer> O O


" Debugging
nnoremap <buffer> Zd obyebug<Esc>
nnoremap <buffer> ZD Obyebug<Esc>


" Spring
command! -buffer FuckSpring :!bundle exec spring stop