diff options
author | Peter Odding <peter@peterodding.com> | 2013-04-28 15:08:19 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2013-04-28 15:08:19 +0200 |
commit | a7ed49ed589cfe5f84bfeda317d03a874002e1a9 (patch) | |
tree | ad03ea51d3b2d9154e630c19f3dc2d68f1ddfbd7 /compat.vim | |
parent | a744d4c5f0c6086251aab66ec68cb9299869b1e9 (diff) | |
download | vim-easytags-a7ed49ed589cfe5f84bfeda317d03a874002e1a9.tar.gz |
Change the repository layout to that of a proper Vim plug-in
Diffstat (limited to 'compat.vim')
-rw-r--r-- | compat.vim | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/compat.vim b/compat.vim deleted file mode 100644 index 83d00a0..0000000 --- a/compat.vim +++ /dev/null @@ -1,23 +0,0 @@ -" Vim auto-load script -" Author: Peter Odding <peter@peterodding.com> -" Last Change: April 20, 2013 -" URL: http://peterodding.com/code/vim/misc/ - -" The following integer will be bumped whenever a change in the miscellaneous -" scripts breaks backwards compatibility. This enables my Vim plug-ins to fail -" early when they detect an incompatible version, instead of breaking at the -" worst possible moments :-). -let g:xolox#misc#compat#version = 1 - -" Remember the directory where the miscellaneous scripts are loaded from -" so the user knows which plug-in to update if incompatibilities arise. -let s:misc_directory = fnamemodify(expand('<sfile>'), ':p:h') - -function! xolox#misc#compat#check(plugin_name, required_version) - if a:required_version != g:xolox#misc#compat#version - let msg = "The %s plug-in requires version %i of the miscellaneous scripts, however version %i was loaded from %s!" - throw printf(msg, a:plugin_name, a:required_version, g:xolox#misc#compat#version, s:misc_directory) - endif -endfunction - -" vim: ts=2 sw=2 et |