Skip to content

Commit 3550f24

Browse files
committed
Simplify include guards and commentary
1 parent ed0d273 commit 3550f24

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

autoload/rails.vim

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
" autoload/rails.vim
22
" Author: Tim Pope <vimNOSPAM@tpope.org>
33

4-
" Install this file as autoload/rails.vim. This file is sourced manually by
5-
" plugin/rails.vim. It is in autoload directory to allow for future usage of
6-
" Vim 7's autoload feature.
7-
8-
" Exit quickly when:
9-
" - this plugin was already loaded (or disabled)
10-
" - when 'compatible' is set
11-
if &cp || exists("g:autoloaded_rails")
4+
" Install this file as autoload/rails.vim.
5+
6+
if exists('g:autoloaded_rails') || &cp
127
finish
138
endif
149
let g:autoloaded_rails = '4.1'

plugin/rails.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
" :help add-local-help (hint: :helptags ~/.vim/doc) Afterwards, you should be
99
" able to do :help rails
1010

11-
" Exit quickly when:
12-
" - this plugin was already loaded (or disabled)
13-
" - when 'compatible' is set
14-
if &cp || (exists("g:loaded_rails") && g:loaded_rails) && !(exists("g:rails_debug") && g:rails_debug)
11+
if exists('g:loaded_rails') || &cp || v:version < 700
1512
finish
1613
endif
1714
let g:loaded_rails = 1

0 commit comments

Comments
 (0)