How can I debug a Vim plugin that does not load?

I am trying to use the Vim snipMate plugin and I installed it as it directs, but when I click the tab nothing happens.

  • How can I debug this? Are there any log files that Vim does when it tries to download material?
  • How can I see which plugins were loaded correctly?

I tried :sni<tab> to find out if there is anything called snipsomething but nothing is complete.

In the installation tutorial, he does not mention adding anything to my vimrc , but I think it automatically finds the /plugin/ directory?

I work on Windows and Unix and I have the same profile with the same problem.

Other plugins, such as NerdTree, load normally.

Update: Following another question, I tried :inoremap and :snoremap , and the <Tab> entry that mentions TriggerSnippet() is:

eg.

 s <Tab> * <Esc>i <Right><CR>=TriggerSnippet()<CR> 
  • Does this mean that it is turned on?
+4
source share
3 answers
 :verbose imap <tab> 

will tell you what is related to <tab>

:scriptnames will tell you which scripts have been downloaded.

+9
source

You can insert echo "Loaded so far" , etc. inside the plugin code - the text will be displayed on the bottom line if echo is running. Debugging printf :) Coarse but simple and works.

Also: plugin loads automatically. plugins no.

+3
source

Looks like I had something dodgy in the C:\Program Files\Vim\vimfiles\ , which was superior to my user settings. I just blew off this directory and now it works.

0
source

All Articles