- Updated unite.vim check.

This commit is contained in:
Shougo Matsushita 2013-07-11 11:10:14 +09:00
parent a83b1b160e
commit fe9ba1525d
1 changed files with 1 additions and 12 deletions

View File

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