From 8ad2a7a7b158c977c6ef4feffeaa8b8d2cd2b0b1 Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 18 Apr 2012 09:59:32 -0700 Subject: [PATCH] Added Specky for rspec highlighting outside spec/ If you have rspecs anywhere else (say fast_spec/), the default rails.vim highlighting doesn't affect them. Added Specky to do this. Specky is not currently enabled in any other way (we will still use ruby-vim-conque to run tests, but Specky will do highlighting/file detection). --- .gitmodules | 4 ++++ README.md | 1 + vim/bundle/vim-scripts-Specky | 1 + vim/plugin/settings/solarized.vim | 12 ++++++++++++ 4 files changed, 18 insertions(+) create mode 160000 vim/bundle/vim-scripts-Specky diff --git a/.gitmodules b/.gitmodules index e3196705..507a4902 100644 --- a/.gitmodules +++ b/.gitmodules @@ -298,3 +298,7 @@ path = vim/bundle/timcharper-textile url = https://github.com/timcharper/textile.vim.git ignore = dirty +[submodule "vim/bundle/vim-scripts-Specky"] + path = vim/bundle/vim-scripts-Specky + url = https://github.com/vim-scripts/Specky.git + ignore = dirty diff --git a/README.md b/README.md index 42d1966e..89974860 100644 --- a/README.md +++ b/README.md @@ -443,6 +443,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * vim-indent-guides - visual indent guides, off by default * color_highlight - use :ColorCodes to see hex colors highlighted * change-inside-surroundings - change content inside delimiters like quotes/brackets + * Specky - used for color highlighting rspec correctly even if specs live outside of spec/ (rails.vim doesn't handle this) #### General enhancements that don't add new commands diff --git a/vim/bundle/vim-scripts-Specky b/vim/bundle/vim-scripts-Specky new file mode 160000 index 00000000..b6415ac2 --- /dev/null +++ b/vim/bundle/vim-scripts-Specky @@ -0,0 +1 @@ +Subproject commit b6415ac2ca85238c224e8bb831bd88b4bfeacf91 diff --git a/vim/plugin/settings/solarized.vim b/vim/plugin/settings/solarized.vim index 6b8d55e5..295e56e0 100644 --- a/vim/plugin/settings/solarized.vim +++ b/vim/plugin/settings/solarized.vim @@ -1,3 +1,15 @@ hi! link txtBold Identifier hi! link zshVariableDef Identifier hi! link zshFunction Function +hi! link rubyControl Statement +hi! link rspecGroupMethods rubyControl +hi! link rspecMocks Identifier +hi! link rspecKeywords Identifier +hi! link rubyLocalVariableOrMethod Normal +hi! link rubyStringDelimiter Constant +hi! link rubyString Constant +hi! link rubyAccess Todo +hi! link rubySymbol Identifier + +" Enforce the colors set here +au VimEnter * so ~/.vim/plugin/settings/solarized.vim