Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)

like image 515
JDW Avatar asked Nov 01 '12 14:11

JDW


People also ask

Does SuperTab work with Jedi-Vim?

Wherever I read, everybody says that SuperTab and Jedi-Vim work seamlessly, however I'm not able to make both work together. That is, I can't have Jedi's completion in TAB, just in C-@ (CTRL+SPACE).

How do I use Vim SuperTab?

Supertab is a vim plugin which allows you to use <Tab> for all your insert completion needs (:help ins-completion). Default completion type to use. Prevent <Tab> from completing after/before defined patterns. Close vim's completion preview window when code completion is finished.

Is there a Vim-Jedi plugin that allows completion using Ctrl Space?

I do not use Vim-Jedi but from what the doc says, the plugin allows completion using Ctrl Space. Supertab is another plugin which remaps Tab to a sensible autocomplete behavior. The author only suggests to use supertab if you want to use the Tab key to trigger Vim-Jedi completion (This is easier than remapping the key by yourself in your .vimrc).

Why doesn't snipmate work with SuperTab?

Supertab use to map to <c-n>, so this behavior would act as a fallback to supertab, but current versions of supertab no longer do so, resulting in snipmate bypassing supertab entirely. You can check if this is the case by running the following in vim to see what is mapped to <tab>: See #74 for additional details.


1 Answers

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').

like image 86
Ingo Karkat Avatar answered Sep 17 '22 02:09

Ingo Karkat