aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kelly <pioto@gentoo.org>2007-05-14 07:40:02 +0000
committerMike Kelly <pioto@gentoo.org>2007-05-14 07:40:02 +0000
commita5f3022feeb7ff62b3bcdc31142badc3b161f45b (patch)
treea5e9740755e5c10efeceeda8565b0d4d506fa0cf /plugin/newmetadata.vim
parentMake dist-upload work properly. (diff)
downloadgentoo-syntax-a5f3022feeb7ff62b3bcdc31142badc3b161f45b.tar.gz
gentoo-syntax-a5f3022feeb7ff62b3bcdc31142badc3b161f45b.tar.bz2
gentoo-syntax-a5f3022feeb7ff62b3bcdc31142badc3b161f45b.zip
Add VIM_PLUGIN_VIM_VERSION to the app-vim/ ebuild template.
Add g:loaded_* guard variables to plugin/* to prevent loading them more than once. This makes it easier to test them by adding them to your ~/.vim/ directory w/o having to remove the system-wide ones. svn path=/trunk/gentoo-syntax/; revision=40
Diffstat (limited to 'plugin/newmetadata.vim')
-rw-r--r--plugin/newmetadata.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 81df9cd..ce5e433 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -4,10 +4,12 @@
" Copyright: Copyright (c) 2004-2005 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
-if &compatible || v:version < 603
+if &compatible || v:version < 603 || exists("g:loaded_newmetadata")
finish
endif
+let g:loaded_newmetadata=1
+
runtime! plugin/gentoo-common.vim
fun! <SID>MakeNewMetadata()