Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now <leader> . works correctly with helper_spec

  • Loading branch information...
commit 25822ea1eb146e49b4f01eab612f8c18e4c8ac42 1 parent e72cb81
@Who828 Who828 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .vimrc
View
2  .vimrc
@@ -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\>') != -1
+ let in_app = match(current_file, '\<controllers\>') != -1 || match(current_file, '\<models\>') != -1 || match(current_file, '\<views\>') || match(current_file, '\<helpers\>') != -1
if going_to_spec
if in_app
let new_file = substitute(new_file, '^app/', '', '')
Please sign in to comment.
Something went wrong with that request. Please try again.