I'm a bit confused about how to go about putting plugins into vims
path.

After reading most of :h plugin. It just says to put a plugin in ~.vim
But on the two plugin tools I've downloaded to add:

  xpt and perl-support

its not clear what is supposed to happen.  The READMEs just say to
unpack in ~/vim. But the file structures inside the plugin pkg seem a
bit wrong for that.

doing cd ~/.vim
  tar xzvf /usr/local/src/tar/xpt-0.3.9.4.tgz
  unzip /usr/local/src/tar/perl-support.zip

Leaves this:
ls -1F ~/.vim

  README.perlsupport
  autoload/
  doc/
  ftplugin/
  perl-support/
  plugin/
  xpt/


But then under xpt/ we have:    And under perl-support:

ls -1F xpt                       ls -1F perl-support                       

  doc/                           codesnippets/ 
  ftdetect/                      doc/
  ftplugin/                      modules/
  plugin/                        rc/
  syntax/                        scripts/
                                 templates/
                                 wordlists/
                                 

The Xpt subdirs in particular seem to almost mimic .vim/ but the
doc directory for example would be at .vim/xpt/doc

Ditto for perl support.

Is this the way vim expects to find them?  That is, vim, knows to
thoroughly recurse ~/.vim 
  
I ask because when I do that with these two and then run
  :helptags ~/.vim/doc

  :h xpt shows that vim knows nothing about it

So I tried:
  :helptags ~/.vim/xpt/doc

but still :h xpt shows nothing.

Finally I tried to mv the files under .vim/xpt/  to .vim/

Ran :helptags ~/.vim/doc again 

Now vim blows up if I call :h xpt with nunmerouss warnings like:

Error detected while processing /home/reader/.vim/ftplugin/help/help.xpt.vim:
line    8:
E117: Unknown function: XPTcontainer
E15: Invalid expression: XPTcontainer()
line   12:
E492: Not an editor command: XPTinclude _common/common
line   17:
E492: Not an editor command: XPTemplateDef
line   19:
E492: Not an editor command: XPT ln hint=\ ========...
[...]

I've unpacked the two plugins at:
  http://www.jtan.com/~reader/vim

And included the two source compressed files:
xpt-0.3.9.4.tgz  and perl-support.zip at:

  http://www.jtan.com/~reader/vim/src

Can anyone tell me how these plugin files should arranged?




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to