Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug a Vim plugin not being loaded?

I'm trying to use the Vim snipMate plugin, and I've installed it as it directs, but when I press tab nothing happens.

  • How can I debug this? Are there log files Vim makes when it tries to load stuff?
  • How can I see what plugins its loaded correctly?

I've tried :sni<tab> to see if there's anything called snipsomething installed but nothing completes.

In the installation tutorial it doesn't mention adding anything into my vimrc but I guess it finds the /plugin/ dir automatically?

I'm running on Windows and Unix and I have the same profile with the same problem.

Other plugins like NerdTree are loading OK.

Update: Following another question, I've tried :inoremap and :snoremap and the <Tab> entry mentioning TriggerSnippet() is there:

e.g.

s <Tab>   * <Esc>i <Right><C-R>=TriggerSnippet()<CR>
  • Does this mean it's enabled?
like image 942
benui Avatar asked Dec 16 '22 22:12

benui


1 Answers

:verbose imap <tab>

will tell you what is bound to <tab>

:scriptnames will tell you what scripts were loaded.

like image 150
Luc Hermitte Avatar answered Jan 05 '23 00:01

Luc Hermitte