- Updated unite.vim check.

This commit is contained in:
Shougo Matsushita 2013-07-11 11:10:14 +09:00
parent a83b1b160e
commit fe9ba1525d

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: snippet.vim " FILE: snippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 05 Mar 2013. " Last Modified: 11 Jul 2013.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
@ -28,11 +28,6 @@ let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! unite#sources#snippet#define() "{{{ function! unite#sources#snippet#define() "{{{
if !exists('*unite#version') || unite#version() < 150
echoerr 'Your unite.vim is too old.'
return []
endif
let kind = { let kind = {
\ 'name' : 'snippet', \ 'name' : 'snippet',
\ 'default_action' : 'expand', \ 'default_action' : 'expand',
@ -157,12 +152,6 @@ function! unite#sources#snippet#start_complete() "{{{
call neosnippet#util#print_error( call neosnippet#util#print_error(
\ 'Please install unite.vim Ver.1.5 or above.') \ 'Please install unite.vim Ver.1.5 or above.')
return '' return ''
elseif unite#version() < 300
call neosnippet#util#print_error(
\ 'Your unite.vim is too old.')
call neosnippet#util#print_error(
\ 'Please install unite.vim Ver.3.0 or above.')
return ''
endif endif
return unite#start_complete(['snippet'], return unite#start_complete(['snippet'],