Move vim settings out of plugins to ensure they all get correctly loaded after everything else [Fix #373]

This commit is contained in:
Yan Pritzker
2013-10-21 16:10:40 -05:00
parent 65a3ec3219
commit 46946c9b8b
55 changed files with 15 additions and 8 deletions

26
vim/settings/rspec.vim Normal file
View File

@@ -0,0 +1,26 @@
" Does not work on pending 'blocks', only single lines
"
" Given:
" it "foo bar" do
" pending("bla bla"
"
" Produce:
" xit "foo bar" do
"
function! ChangePendingRspecToXit()
" Find the next occurrence of pending
while(search("pending(") > 0)
" Delete it
normal dd
" Search backwards to the it block
?it\s
" add an 'x' to the 'it' to make it 'xit'
normal ix
endwhile
endfunction
nnoremap <silent> ,rxit :call ChangePendingRspecToXit()<cr>
" insert a before { } block around a line
nnoremap <silent> \bf ^ibefore { <esc>$a }