From adb689d0a551287d31ab55f1b9138e8b276575ec Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 30 Aug 2016 23:26:57 +0200 Subject: [PATCH] vim: drop vim v5.x compatibility Updated runtime files. Remove version checks for Vim older than 6.0. Cherry-picked from Vim v7.4.2296^. --- plp.vim | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/plp.vim b/plp.vim index 992062c..adcddea 100644 --- a/plp.vim +++ b/plp.vim @@ -8,11 +8,8 @@ " Add to filetype.vim the following line (without quote sign): " au BufNewFile,BufRead *.plp setf plp -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" Quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -20,14 +17,9 @@ if !exists("main_syntax") let main_syntax = 'perlscript' endif -if version < 600 - so :p:h/html.vim - syn include @PLPperl :p:h/perl.vim -else - runtime! syntax/html.vim - unlet b:current_syntax - syn include @PLPperl syntax/perl.vim -endif +runtime! syntax/html.vim +unlet b:current_syntax +syn include @PLPperl syntax/perl.vim syn cluster htmlPreproc add=PLPperlblock -- 2.30.0