Skip to content

Commit 1684668

Browse files
committed
Fix #17: disable syntax checking when Vim older than 7.3
1 parent 430c9d0 commit 1684668

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ Copy the content of the tarball to your `.vim'. Don't forget to run
2828
`:helptags' if you are not using Pathogen.
2929

3030
Vimerl requires to have a recent version of Erlang installed in your
31-
system with `escript' in your $PATH and to use Vim 7.3 or newer.
31+
system with `escript' in your $PATH.
32+
33+
With a Vim version older than 7.3 syntax checking will be disabled as
34+
some required features won't be available.
3235

3336

3437
How to use it

compiler/erlang.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
" Author: Pawel 'kTT' Salata <[email protected]>
44
" Contributors: Ricardo Catalinas Jiménez <[email protected]>
55
" License: Vim license
6-
" Version: 2012/01/18
6+
" Version: 2012/01/31
77

8-
if exists("current_compiler")
8+
if exists("current_compiler") || v:version < 703
99
finish
1010
else
1111
let current_compiler = "erlang"

0 commit comments

Comments
 (0)