Skip to content

Instantly share code, notes, and snippets.

@ryochack
Last active April 8, 2017 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryochack/442accdc5ebc70d3a12ba03da1c9f45d to your computer and use it in GitHub Desktop.
Save ryochack/442accdc5ebc70d3a12ba03da1c9f45d to your computer and use it in GitHub Desktop.
" vim-plugでPluginがインストールされているかどうかを判定する
function s:has_plugged(name)
if exists('g:plugs') && has_key(g:plugs, a:name) && isdirectory(g:plugs[a:name].dir)
return 1
else
return 0
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment