Skip to content

Commit bd941d0

Browse files
committed
Check webapi-vim is installed or not. Closes mattn#140
1 parent 9170567 commit bd941d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

autoload/gist.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"=============================================================================
22
" File: gist.vim
33
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
4-
" Last Change: 15-Oct-2013.
4+
" Last Change: 17-Oct-2013.
55
" Version: 7.1
66
" WebPage: http://github.com/mattn/gist-vim
77
" License: BSD
@@ -19,6 +19,11 @@ if !executable('curl')
1919
finish
2020
endif
2121

22+
if globpath(&rtp, 'autoload/webapi/http.vim') == ''
23+
echohl ErrorMsg | echomsg "Gist: require 'webapi', install https://github.com/mattn/webapi-vim" | echohl None
24+
finish
25+
endif
26+
2227
let s:gist_token_file = expand(get(g:, 'gist_token_file', '~/.gist-vim'))
2328
let s:system = function(get(g:, 'webapi#system_function', 'system'))
2429

0 commit comments

Comments
 (0)