Permalink
Browse files

set Rails style indentation when inside rails

  • Loading branch information...
1 parent 98c26fd commit ce9614e2050364153b7acce7e7e74cd82b99a821 @tenderlove committed Jul 28, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 vimrc
View
2 vimrc
@@ -5,12 +5,14 @@ set nocompatible
function! SetRailsEnv()
let l:path = getcwd()
+ let g:ruby_indent_access_modifier_style="normal"
if match(l:path, "rails\$") > 0
if filewritable(l:path . "/activesupport") == 2
if match(&path, "activesupport") < 0
let &path = "activesupport/lib,actionpack/lib,activerecord/lib," . &path
endif
compiler minitest
+ let g:ruby_indent_access_modifier_style="indent"
endif
endif
endfunction

0 comments on commit ce9614e

Please sign in to comment.