Skip to content

Instantly share code, notes, and snippets.

@koturn
Last active August 21, 2016 08:39
Show Gist options
  • Save koturn/ca2c1de3d3f6b3343fa8750644bb2630 to your computer and use it in GitHub Desktop.
Save koturn/ca2c1de3d3f6b3343fa8750644bb2630 to your computer and use it in GitHub Desktop.
dein.vimでnobundle.vimのNeoBundleListっぽいことを実現するやつ
function! s:dein_list() abort
echomsg '[dein] #: not sourced, X: not installed'
for pair in items(dein#get())
echomsg (!isdirectory(pair[1].path) ? 'X'
\ : dein#is_sourced(pair[0]) ? ' '
\ : '#') pair[0]
endfor
endfunction
command! DeinList call s:dein_list()
" :DeinList
" って感じでコマンドを実行すると,:NeoBundleList と同じ感じのことができます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment