" Default indentation settings
setlocal tabstop=2
setlocal shiftwidth=2

" ? and ! are part of method names
setlocal iskeyword+=?,!

" RSpec
let g:rspec_command = "!frbe rspec {spec}"
nmap <buffer> <Leader>t :call RunCurrentSpecFile()<CR>
nmap <buffer> <Leader>s :call RunNearestSpec()<CR>
nmap <buffer> <Leader>l :call RunLastSpec()<CR>
nmap <buffer> <Leader>a :call RunAllSpecs()<CR>

" XmpFilter
nmap <buffer> <M-m> <Plug>(xmpfilter-mark)
xmap <buffer> <M-m> <Plug>(xmpfilter-mark)
imap <buffer> <M-m> <Plug>(xmpfilter-mark)

nmap <buffer> <M-r> <Plug>(xmpfilter-run)
xmap <buffer> <M-r> <Plug>(xmpfilter-run)
imap <buffer> <M-r> <Plug>(xmpfilter-run)

" AutoPairs
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '"':'"', '`':'`', '|':'|'}

" Default indentation settings
setlocal tabstop=2
setlocal shiftwidth=2

" ? and ! are part of method names
setlocal iskeyword+=?,!

" RSpec
let g:rspec_command = "!rspec {spec}"
nmap <buffer> <Leader>t :call RunCurrentSpecFile()<CR>
nmap <buffer> <Leader>s :call RunNearestSpec()<CR>
nmap <buffer> <Leader>l :call RunLastSpec()<CR>
nmap <buffer> <Leader>a :call RunAllSpecs()<CR>

" XmpFilter
nmap <buffer> <M-m> <Plug>(xmpfilter-mark)
xmap <buffer> <M-m> <Plug>(xmpfilter-mark)
imap <buffer> <M-m> <Plug>(xmpfilter-mark)

nmap <buffer> <M-r> <Plug>(xmpfilter-run)
xmap <buffer> <M-r> <Plug>(xmpfilter-run)
imap <buffer> <M-r> <Plug>(xmpfilter-run)

" AutoPairs
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '"':'"', '`':'`', '|':'|'}

Remove frbe from standard rspec command
Remove frbe from standard rspec command

alcesleo/dotfiles,alcesleo/dotfiles