How to check if SuperTab and jedi-vim is activated?
Asked Answered
S

1

5

As the title states, how do I check if a plugin is loaded?

When I hit tab (for SuperTab) all I get is the ordinary character "tab" inserted in my file and when I hit ctrl-space I just get thrown out of insert-mode (same behavior as hitting ESC)

Soldierly answered 1/11, 2012 at 14:49 Comment(3)
Too bad rep to add "jedi-vim" as a tag =/Soldierly
Your question has nothing to do with either plugin anyway.Quinquennium
Follow up to this question: https://mcmap.net/q/2033593/-vim-supertab-and-jedi-vimSoldierly
A
8

The :scriptnames command lists all scripts that have been sourced; check for the plugin name in its output. If it's missing, it is either due to a wrong installation or because 'runtimepath' is incorrect.

Alternatively, if you know the mapping a plugin should define

:verbose imap <Tab>

will show the mapping and from which script is was set.

Programmatically, it is best to check for the canonical include guard if exists('g:loaded_pluginname') or for a defined command via if exists(':PluginCommand').

Ascendancy answered 1/11, 2012 at 14:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.