diff --git a/vimrc b/vimrc index cc384ed..8cd46b6 100644 --- a/vimrc +++ b/vimrc @@ -19,12 +19,16 @@ Plugin 'godlygeek/tabular' Plugin 'itchyny/lightline.vim' Plugin 'nathanaelkane/vim-indent-guides' Plugin 'rodjek/vim-puppet' +Plugin 'thoughtbot/vim-rspec' +Plugin 'tpope/vim-dispatch' +Plugin 'tpope/vim-endwise' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-markdown' Plugin 'tpope/vim-rails' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-vividchalk' +Plugin 'vim-ruby/vim-ruby' call vundle#end() filetype plugin indent on @@ -134,7 +138,6 @@ map k :wincmd k map l :wincmd l " auto character alignment -map t :Tabularize / map t> :Tabularize /=> map te :Tabularize /= @@ -165,10 +168,20 @@ map st :call SyntaxToggle() map sz :so ~/.vimrc map ts :sp ~/tool-sharpener.txt +" rspec +map t :w:call RunNearestSpec() + " Set style colorscheme vividchalk " special case colors set at end of file via function +" dispatch fix for bundle exec rspec always quickfixing +let g:dispatch_compilers = { + \ 'bundle exec': ''} + +" rspec +let g:rspec_command = "Dispatch bundle exec rspec {spec}" + " Indentation let g:indent_guides_guide_size=1 let g:indent_guides_enable_on_vim_startup=1 diff --git a/zsh/prompt b/zsh/prompt index 0eac433..b6d49af 100644 --- a/zsh/prompt +++ b/zsh/prompt @@ -19,7 +19,7 @@ precmd() { zstyle ':vcs_info:*' enable git hg svn zstyle ':vcs_info:*:prompt:*' nvcsformats "" - zstyle ':vcs_info:*:prompt:*' formats "[%F{yellow}%b%f%u%c]" + zstyle ':vcs_info:*:prompt:*' formats "[%F{cyan}%b%f%u%c]" vcs_info 'prompt' } local vcs='${vcs_info_msg_0_}'