summaryrefslogtreecommitdiff
path: root/runtime/syntax/fvwm2m4.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/fvwm2m4.vim')
-rw-r--r--runtime/syntax/fvwm2m4.vim21
1 files changed, 5 insertions, 16 deletions
diff --git a/runtime/syntax/fvwm2m4.vim b/runtime/syntax/fvwm2m4.vim
index 243da18fa..e296273e3 100644
--- a/runtime/syntax/fvwm2m4.vim
+++ b/runtime/syntax/fvwm2m4.vim
@@ -5,12 +5,9 @@
" URI: http://physics.muni.cz/~yeti/download/syntax/fvwmm4.vim
" Setup
-if version >= 600
- if exists('b:current_syntax')
- finish
- endif
-else
- syntax clear
+" quit when a syntax file was already loaded
+if exists('b:current_syntax')
+ finish
endif
" Let included files know they are included
@@ -19,19 +16,11 @@ if !exists('main_syntax')
endif
" Include M4 syntax
-if version >= 600
- runtime! syntax/m4.vim
-else
- so <sfile>:p:h/m4.vim
-endif
+runtime! syntax/m4.vim
unlet b:current_syntax
" Include Fvwm2 syntax (Fvwm1 doesn't have M4 preprocessor)
-if version >= 600
- runtime! syntax/fvwm.vim
-else
- so <sfile>:p:h/fvwm.vim
-endif
+runtime! syntax/fvwm.vim
unlet b:current_syntax
" That's all!