Skip to content
Browse files

tell user what's going wrong if tlib or vim-addon-mw-utils are missing

  • Loading branch information...
1 parent 95e66f0 commit a1190f5b3d7360c22d0aa3d7bdf3fba8ffff0391 @MarcWeber MarcWeber committed Dec 17, 2011
Showing with 12 additions and 0 deletions.
  1. +6 −0 autoload/snipMate.vim
  2. +6 −0 plugin/snipMate.vim
View
6 autoload/snipMate.vim
@@ -4,6 +4,12 @@ if !exists('g:snipMate')
endif
let s:snipMate = g:snipMate
+try
+ call tlib#input#List('mi', '', [])
+catch /.*/
+ echoe "you're missing tlib. See install instructions at ".expand('<sfile>:h:h').'/README.rst'
+endtry
+
" if filetype is objc, cpp, or cs also append snippets from scope 'c'
" you can add multiple by separating scopes by ',', see s:AddScopeAliases
" TODO add documentation to doc/*
View
6 plugin/snipMate.vim
@@ -15,6 +15,12 @@ endif
let loaded_snips = 1
if !exists('snips_author') | let snips_author = 'Me' | endif
+try
+ call funcref#Function('')
+catch /.*/
+ echoe "you're missing vim-addon-mw-utils. See install instructions at ".expand('<sfile>:h:h').'/README.rst'
+endtry
+
if (!exists('g:snipMateSources'))
let g:snipMateSources = {}
" default source: get snippets based on runtimepath:

0 comments on commit a1190f5

Please sign in to comment.
Something went wrong with that request. Please try again.