Skip to content

Commit a4595b4

Browse files
committed
Allow disabling VimEnter detection
References: tpope#581
1 parent 03a5c3e commit a4595b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/rails.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ augroup railsPluginDetect
8787
\ call rails#buffer_setup() |
8888
\ endif
8989
autocmd VimEnter *
90-
\ if empty(expand("<amatch>")) && RailsDetect(getcwd()) |
90+
\ if get(g:, 'rails_vim_enter', get(g:, 'projectionist_vim_enter', 1)) &&
91+
\ empty(expand("<amatch>")) && RailsDetect(getcwd()) |
9192
\ call rails#buffer_setup() |
9293
\ call s:doau_user('BufEnterRails') |
9394
\ endif

0 commit comments

Comments
 (0)