]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vim/ftplugin/*/*.xpt.vim: Prevent errors if XPTemplate is not installed.
authorSimon Ruderich <simon@ruderich.org>
Mon, 27 Aug 2012 14:55:42 +0000 (16:55 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 27 Aug 2012 14:55:42 +0000 (16:55 +0200)
vim/ftplugin/c/c.xpt.vim
vim/ftplugin/perl/perl.xpt.vim

index 7944ece899eb56636e07e273f588d0a262b0b89a..928420ff5c08e522759b0a83aa3e77979806eedb 100644 (file)
 " You should have received a copy of the GNU General Public License
 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
+
+" Prevent errors if XPTemplate is not installed.
+if !exists('g:XPT#ver')
+    finish
+endif
+
 XPTemplate priority=personal
 
 
index aa197ebe6907b4c50c3794fc505564ceea0073ad..672d2c582f8ef36097dbb2ce1127ecb7d41b3b53 100644 (file)
 " You should have received a copy of the GNU General Public License
 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
+
+" Prevent errors if XPTemplate is not installed.
+if !exists('g:XPT#ver')
+    finish
+endif
+
 XPTemplate priority=personal