Permalink
Browse files

fix bug: <leader>. always thought it was in Rails

  • Loading branch information...
1 parent 39d4f2a commit 2f441acc648605b52978550e4989befa67e2096a @garybernhardt committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .vimrc
View
@@ -274,7 +274,7 @@ function! AlternateForCurrentFile()
let new_file = current_file
let in_spec = match(current_file, '^spec/') != -1
let going_to_spec = !in_spec
- let in_app = match(current_file, '\<controllers\>') != -1 || match(current_file, '\<models\>') != -1 || match(current_file, '\<views\>') || match(current_file, '\<helpers\>') != -1
+ let in_app = match(current_file, '\<controllers\>') != -1 || match(current_file, '\<models\>') != -1 || match(current_file, '\<views\>') != -1 || match(current_file, '\<helpers\>') != -1
if going_to_spec
if in_app
let new_file = substitute(new_file, '^app/', '', '')

0 comments on commit 2f441ac

Please sign in to comment.