From: Simon Ruderich Date: Mon, 27 Aug 2012 14:55:42 +0000 (+0200) Subject: vim/ftplugin/*/*.xpt.vim: Prevent errors if XPTemplate is not installed. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7ba8fd37426025138d7d19cfdbdf081d13c3b0c3;p=config%2Fdotfiles.git vim/ftplugin/*/*.xpt.vim: Prevent errors if XPTemplate is not installed. --- 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