ソースを参照

Update cucumber rails projections

Andrew Swistak 11 年 前
コミット
cebf870f9c
1 ファイル変更9 行追加5 行削除
  1. 9 5
      vimrc

+ 9 - 5
vimrc

@@ -69,16 +69,16 @@ nnoremap k gk
 
 " Set CTRL+S to save becuase I smack that every 10 seconds on whatever application I use
 " browse is only available in gvim
-command -nargs=0 -bar Update if &modified
+command -nargs=0 -bar Save if &modified
           \|  if empty(bufname('%'))
           \|    browse confirm write
           \|  else
           \|    confirm write
           \|  endif
           \|endif
-nnoremap <silent> <C-s> :Update<CR>
-inoremap <C-s> <C-o>:Update<CR>
-vnoremap <C-s> <C-o>:Update<CR>
+nnoremap <silent> <C-s> :Save<CR>
+inoremap <C-s> <C-o>:Save<CR>
+vnoremap <C-s> <C-o>:Save<CR>
 
 " CTRL+w to close the current buffer
 nnoremap <silent> <C-w> :call CloseWindow()<CR>
@@ -243,7 +243,11 @@ let g:rails_gem_projections = {
       \   "cucumber-rails": {
       \     "features/*.feature": {
       \       "command": "feature",
-      \       "template": "Feature: \n\n  Scenario: " ,
+      \       "template": "Feature: %h\n\n  Scenario: " ,
+      \     },
+      \     "features/step_definitions/*_steps.rb": {
+      \       "command": "steps",
+      \       "affinity": "collection"
       \     }
       \   },
       \   "draper": {