Skip to content

Commit eae3e06

Browse files
committed
Make sure vim-misc is installed, politely complain if it isn't
1 parent fddbe78 commit eae3e06

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

autoload/xolox/easytags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: July 16, 2013
3+
" Last Change: August 19, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.4'
6+
let g:xolox#easytags#version = '3.4.1'
77

88
" Plug-in initialization. {{{1
99

doc/easytags.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ easytags. If you like this plug-in please vote for it on Vim Online [21].
647647
*easytags-license*
648648
License ~
649649

650-
This software is licensed under the MIT license [22]. © 2013 Peter Odding
650+
This software is licensed under the MIT license [22]. Š 2013 Peter Odding
651651
<peter@peterodding.com>.
652652

653653
===============================================================================

plugin/easytags.vim

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim plug-in
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: June 22, 2013
3+
" Last Change: August 19, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55
" Requires: Exuberant Ctags (http://ctags.sf.net)
66

@@ -12,6 +12,20 @@ if &cp || exists('g:loaded_easytags')
1212
finish
1313
endif
1414

15+
" Make sure vim-misc is installed. {{{1
16+
17+
try
18+
" The point of this code is to do something completely innocent while making
19+
" sure the vim-misc plug-in is installed. We specifically don't use Vim's
20+
" exists() function because it doesn't load auto-load scripts that haven't
21+
" already been loaded yet (last tested on Vim 7.3).
22+
call type(g:xolox#misc#version)
23+
catch
24+
echomsg "Warning: The vim-easytags plug-in requires the vim-misc plug-in which seems not to be installed! For more information please review the installation instructions in the readme (also available on the homepage and on GitHub). The vim-easytags plug-in will now be disabled."
25+
let g:loaded_easytags = 1
26+
finish
27+
endtry
28+
1529
" Configuration defaults and initialization. {{{1
1630

1731
if !exists('g:easytags_file')

0 commit comments

Comments
 (0)