Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Subdirectories for help files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marco  
View profile  
 More options Nov 13 2012, 4:23 pm
From: Marco <net...@lavabit.com>
Date: Tue, 13 Nov 2012 22:22:38 +0100
Local: Tues, Nov 13 2012 4:22 pm
Subject: Subdirectories for help files
Hi,

I have plenty of help files in my .vim/doc directory. I'd like to
structure it a little more. Apparently simply placing the files in
subdirectories is not sufficient. The help tags can not be found. Is
there a way to either

 ∙ add the paths of the subdirectories to the help tags or
 ∙ create one tag file per directory and tell vim to find those tag
   files as well?

I don't know what's the better approach. The :helptags help is very
scarce about this topic.

Marco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Lott  
View profile  
 More options Nov 13 2012, 4:39 pm
From: Chris Lott <ch...@chrislott.org>
Date: Tue, 13 Nov 2012 12:38:38 -0900
Local: Tues, Nov 13 2012 4:38 pm
Subject: Re: Subdirectories for help files

On Tue, Nov 13, 2012 at 12:22 PM, Marco <net...@lavabit.com> wrote:
> Hi,

> I have plenty of help files in my .vim/doc directory. I'd like to
> structure it a little more. Apparently simply placing the files in
> subdirectories is not sufficient. The help tags can not be found. Is
> there a way to either

Not sure if it's an option, but using a plugin manager like
[Pathogen](https://github.com/tpope/vim-pathogen) or
[Vundle](https://github.com/gmarik/vundle) allows you to keep the help
files in place in that plugin's folder (along with everything else).
Much cleaner, more portable

Just a thought.

c
--
Chris Lott <ch...@chrislott.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco  
View profile  
 More options Nov 14 2012, 4:46 am
From: Marco <net...@lavabit.com>
Date: Wed, 14 Nov 2012 10:46:17 +0100
Local: Wed, Nov 14 2012 4:46 am
Subject: Re: Subdirectories for help files
2012-11-13 Chris Lott:

> Not sure if it's an option, but using a plugin manager like
> [Pathogen](https://github.com/tpope/vim-pathogen) or
> [Vundle](https://github.com/gmarik/vundle) allows you to keep the help
> files in place in that plugin's folder (along with everything else).

I already use Vundle, but I don't see a difference if I create the
help and corresponding tag files in ~/.vim/doc or in the bundle
directory. Files located in subdirectories are not found using
Vundle, either.

  ~/.vim/bundle/whatever/doc/foo        # found
  ~/.vim/bundle/whatever/doc/tags
  ~/.vim/bundle/whatever/doc/subir/bar  # not found
  ~/.vim/bundle/whatever/doc/subir/tags

> Much cleaner, more portable

If it only would work. Since the tag files in

  ~/.vim/bundle/whatever/doc

are being found, it means there is apparently a way to locate tag
file outside of ~/.vim/doc. I need to apply the same logic as
Vundle, just with a different path.

Marco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options Nov 14 2012, 9:34 am
From: Ben Fritz <fritzophre...@gmail.com>
Date: Wed, 14 Nov 2012 06:34:04 -0800 (PST)
Local: Wed, Nov 14 2012 9:34 am
Subject: Re: Subdirectories for help files

I'm pretty sure the idea of a bundle directory like ~/.vim/bundle/whatever is that "whatever" is a self-contained, small, single plugin. There should be no reason to have subdirectories inside whatever. The subdirectories are the children of bundle. What am I missing here about your desired outcome?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Lott  
View profile  
 More options Nov 14 2012, 10:22 am
From: Chris Lott <ch...@chrislott.org>
Date: Wed, 14 Nov 2012 06:21:40 -0900
Local: Wed, Nov 14 2012 10:21 am
Subject: Re: Subdirectories for help files

My point is that, with the plugins each in their own directory, there
is no need to use subdirs for the docs. That makes sense when trying
to keep a single, central doc directory clean, but I don't understand
what you are trying to achieve here.

> are being found, it means there is apparently a way to locate tag
> file outside of ~/.vim/doc. I need to apply the same logic as
> Vundle, just with a different path.

Your original question didn't really make this clear...it sounded like
you wanted subdirs for your collection of doc files. You could look
inside the Vundle plugin and see what its equivalent of :Helptags (I
use Pathogen) does or create a pseudo-plugin in the bundle directory
for each of your tag files.

c
--
Chris Lott <ch...@chrislott.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco  
View profile  
 More options Nov 14 2012, 10:22 am
From: Marco <net...@lavabit.com>
Date: Wed, 14 Nov 2012 16:22:14 +0100
Local: Wed, Nov 14 2012 10:22 am
Subject: Re: Subdirectories for help files
2012-11-14 Ben Fritz:

> I'm pretty sure the idea of a bundle directory like
> ~/.vim/bundle/whatever is that "whatever" is a self-contained,
> small, single plugin. There should be no reason to have
> subdirectories inside whatever.

I will describe my use case. I have several custom help files in
~/vim/doc, which contain code snippets. I don't want the text to be
cluttered with code snippets, so I move them to individual files.
That means a help file comprises the main help file and the
snippets.

  doc/foo.txt
  doc/foo-snip-a.txt
  doc/foo-snip-b.txt
  doc/foo-snip-c.txt

  doc/bar.txt
  doc/bar-snip-a.txt
  doc/bar-snip-b.txt
  doc/bar-snip-c.txt

This clutters my doc directory with all the snippets, so I thought I
could place them into subdirectories as follows.

  doc/foo.txt
  doc/foo/snip-a.txt
  doc/foo/snip-b.txt
  doc/foo/snip-c.txt

  doc/bar.txt
  doc/bar/snip-a.txt
  doc/bar/snip-b.txt
  doc/bar/snip-c.txt

The files are not under version control and they aren't plugins. I
hope my intentions are more clear now.

Marco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options Nov 14 2012, 9:27 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Wed, 14 Nov 2012 18:27:08 -0800 (PST)
Local: Wed, Nov 14 2012 9:27 pm
Subject: Re: Subdirectories for help files

So just pretend they are plugins and put them in their own bundle/whatever/doc directory.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Campbell  
View profile  
 More options Nov 19 2012, 2:39 pm
From: Charles Campbell <Charles.E.Campb...@nasa.gov>
Date: Mon, 19 Nov 2012 14:39:07 -0500
Local: Mon, Nov 19 2012 2:39 pm
Subject: Re: Subdirectories for help files
Marco wrote:
> Hi,

> I have plenty of help files in my .vim/doc directory. I'd like to
> structure it a little more. Apparently simply placing the files in
> subdirectories is not sufficient. The help tags can not be found. Is
> there a way to either

>   * add the paths of the subdirectories to the help tags or
>   * create one tag file per directory and tell vim to find those tag
>     files as well?

> I don't know what's the better approach. The :helptags help is very
> scarce about this topic.

There's a new patch out that allows subdirectories in help. Actually,
its not a limitation of the help or tags, but rather of the :helptags
command.
Admittedly experimental.  Probably won't work with vms (although I don't
think it'll do anything adverse with vms).

The patch is at http://www.drchip.org/astronaut/vim/index.html#HELPTAGS .

Regards,
C Campbell


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Campbell  
View profile  
 More options Nov 29 2012, 10:01 am
From: Charles Campbell <Charles.E.Campb...@nasa.gov>
Date: Thu, 29 Nov 2012 10:01:36 -0500
Local: Thurs, Nov 29 2012 10:01 am
Subject: Re: Subdirectories for help files

Bram has accepted my patch into vim (7.3.734).  So, enjoy!

Regards,
Chip Campbell


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco  
View profile  
 More options Nov 30 2012, 6:26 pm
From: Marco <net...@lavabit.com>
Date: Sat, 1 Dec 2012 00:26:34 +0100
Local: Fri, Nov 30 2012 6:26 pm
Subject: Re: Subdirectories for help files
2012-11-19 Charles Campbell:

Hi Charles

> There's a new patch out that allows subdirectories in help. Actually,
> its not a limitation of the help or tags, but rather of the :helptags
> command.

I'm sorry to get back so late on this. I just compiled my new vim
and it seems to work fine.

> Admittedly experimental.

I did a few tests and it seems to work.

Thanks a lot for looking into this and taking the time to write a
patch that solves my issue.

Marco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »