From 04043cac04f16879868b451febada120f35e7eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miros=C5=82aw=20Prag=C5=82owski?= Date: Wed, 3 Jun 2015 13:04:26 +0200 Subject: [PATCH] Installed vim-rspec --- .gitmodules | 3 +++ bundle/vim-rspec | 1 + my_configs.vim | 13 +++++++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 160000 bundle/vim-rspec diff --git a/.gitmodules b/.gitmodules index a2ad32a7..7385d102 100644 --- a/.gitmodules +++ b/.gitmodules @@ -64,3 +64,6 @@ [submodule "bundle/vim-github-colorscheme"] path = bundle/vim-github-colorscheme url = git@github.com:endel/vim-github-colorscheme.git +[submodule "bundle/vim-rspec"] + path = bundle/vim-rspec + url = git@github.com:thoughtbot/vim-rspec.git diff --git a/bundle/vim-rspec b/bundle/vim-rspec new file mode 160000 index 00000000..2cf8c500 --- /dev/null +++ b/bundle/vim-rspec @@ -0,0 +1 @@ +Subproject commit 2cf8c5002cb89eb8e9aabe59d25b89dc5afec88a diff --git a/my_configs.vim b/my_configs.vim index 9d07e662..3aaca983 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -5,8 +5,6 @@ function! SetupCursorLine(...) highlight CursorLine ctermbg=NONE cterm=NONE gui=NONE highlight LineNr ctermfg=darkgrey set cursorline - let &colorcolumn="80,".join(range(120,999),",") - highlight ColorColumn ctermbg=235 endfunction call SetupCursorLine() @@ -50,6 +48,11 @@ noremap noremap noremap +" javascript +let g:javascript_fold = 0 +set nofoldenable + + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => custom ... WTF, don't remember ;) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -87,3 +90,9 @@ autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber autocmd BufNewFile,BufRead *.haml setf haml autocmd BufNewFile,BufRead *.sass setf sass autocmd BufNewFile,BufRead *.scss setf scss + +" RSpec.vim mappings +map t :call RunCurrentSpecFile() +map s :call RunNearestSpec() +map l :call RunLastSpec() +map a :call RunAllSpecs()