From 7ba8fd37426025138d7d19cfdbdf081d13c3b0c3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Aug 2012 16:55:42 +0200 Subject: [PATCH] vim/ftplugin/*/*.xpt.vim: Prevent errors if XPTemplate is not installed. --- vim/ftplugin/c/c.xpt.vim | 6 ++++++ vim/ftplugin/perl/perl.xpt.vim | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/vim/ftplugin/c/c.xpt.vim b/vim/ftplugin/c/c.xpt.vim index 7944ece..928420f 100644 --- a/vim/ftplugin/c/c.xpt.vim +++ b/vim/ftplugin/c/c.xpt.vim @@ -21,6 +21,12 @@ " You should have received a copy of the GNU General Public License " along with this file. If not, see . + +" Prevent errors if XPTemplate is not installed. +if !exists('g:XPT#ver') + finish +endif + XPTemplate priority=personal diff --git a/vim/ftplugin/perl/perl.xpt.vim b/vim/ftplugin/perl/perl.xpt.vim index aa197eb..672d2c5 100644 --- a/vim/ftplugin/perl/perl.xpt.vim +++ b/vim/ftplugin/perl/perl.xpt.vim @@ -21,6 +21,12 @@ " You should have received a copy of the GNU General Public License " along with this file. If not, see . + +" Prevent errors if XPTemplate is not installed. +if !exists('g:XPT#ver') + finish +endif + XPTemplate priority=personal -- 2.44.1