333

Does anybody know of a way to list up the "loaded plugins" in Vim? I know I should be keeping track of this kind of stuff myself but it would always be nice to be able to check the current status.

Grzegorz Żur
  • 47,257
  • 14
  • 109
  • 105
Daisuke Shimamoto
  • 5,206
  • 6
  • 32
  • 37

6 Answers6

415

Not a VIM user myself, so forgive me if this is totally offbase. But according to what I gather from the following VIM Tips site:

" where was an option set  
:scriptnames            : list all plugins, _vimrcs loaded (super)  
:verbose set history?   : reveals value of history and where set  
:function               : list functions  
:func SearchCompl       : List particular function
Sicco
  • 6,167
  • 5
  • 45
  • 61
Rob Rolnick
  • 8,519
  • 2
  • 28
  • 17
45

The problem with :scriptnames, :commands, :functions, and similar Vim commands, is that they display information in a large slab of text, which is very hard to visually parse.

To get around this, I wrote Headlights, a plugin that adds a menu to Vim showing all loaded plugins, TextMate style. The added benefit is that it shows plugin commands, mappings, files, and other bits and pieces.

Mohammed
  • 1,032
  • 11
  • 5
  • 1
    @Mohammed, I installed Headlights. I'm on Mac OS X Mountain Lion, and I don't see menus in "vim". I don't have a "gvim" in my path. Any idea how to get/run a GUI vim that would show me menus so that I could see the Headlights menu? – Rob Bednark Aug 05 '12 at 15:47
  • @RobBednark MacVim is what your looking for. You can install it with HomeBrew via `brew install macvim` or get it [here](http://code.google.com/p/macvim/). You can activate it from the command line using `mvim` if you install that command line tool. (and you can alias that to `gvim` if you're used to typing that) – adam_0 Sep 08 '12 at 03:29
  • 1
    @adam_0 I have it as `brew cask install macvim` – barlop May 19 '19 at 04:29
33
:set runtimepath?

This lists the path of all plugins loaded when a file is opened with Vim.

akashbw
  • 1,168
  • 12
  • 18
27

If you use Vundle, :PluginList.

Matt Florence
  • 688
  • 6
  • 9
22

:help local-additions

Lists local plugins added.

penkwin
  • 249
  • 2
  • 4
  • 4
    Note that this will only list plugins that have a proper vim help file installed – j b Apr 12 '19 at 06:06
  • @jb Um I get a positive result for situations that say 'Sorry, no help for X' – Joe May 09 '20 at 19:44
12

If you use vim-plug (Plug), " A minimalist Vim plugin manager.":

:PlugStatus

That will not only list your plugins but check their status.

aris
  • 22,725
  • 1
  • 29
  • 33