Skip to content

Instantly share code, notes, and snippets.

@naoty
Created May 17, 2012 03:14
Show Gist options
  • Select an option

  • Save naoty/2715949 to your computer and use it in GitHub Desktop.

Select an option

Save naoty/2715949 to your computer and use it in GitHub Desktop.
.vimrc settings for rails tdd
Bundle 'git://github.com/kana/vim-altr.git'
" F2, F3でコードとテストを切り替え
nmap <F2> <Plug>(altr-back)
nmap <F3> <Plug>(altr-forward)
" 切り替えの候補を定義
call altr#define('app/models/%.rb', 'spec/models/%_spec.rb')
call altr#define('app/controllers/%.rb', 'spec/controllers/%_spec.rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment