Tuesday, June 22, 2010

Re: set filetype in .vimrc

Tony Mechelynck-2 wrote:
>
> On 21/06/10 05:59, aleCodd wrote:
>
> The Vim helptags are per-directory: with the default 'runtimepath' you
> could have up to five directories of helpfiles, namely (on Windows, but
> n in Vim termlinology) ~/vimfiles/doc, $VIM/vimfiles/doc, $VIMRUNTIME/doc,
> $VIM/vimfiles/after/doc and ~/vimfiles/after/doc. The tags file in
> $VIMRUNTIME/doc applies only to the helpfiles in that directory; if you
> install your own additional helpfiles (which should go in the other
> four) you should run :helptags in the directory in question to create or
> update _its_ tagfile. (If you unpack a vimball with one or more
> helpfiles in it, it will run :helptags for you, usually in
> ~/vimfiles/doc if you're on Windows.)
>
> If you modify the 'runtimepath' option, you could have a tags file in
> the doc/ subdirectory of each of the "tree-head" directories mentioned
> (comma-separated) in your modified setting. All those will be integrated
> to the Vim help, and will also be accessible by using tag commands
> (:tag, :tselect, :tnext, etc., and also Normal commands such as Ctrl-]
> and Ctrl-T which we learnt about the helptags, but are actually for any
> tags).
>
> If you do _not_ add the parent directory to 'runtimepath', I think (but
> haven't tested) that doing :helptags on that directory would generate a
> tags file from everything that is between *stars* without integrating
> those tags to the Vim help. You could then use the tag commands on them,
> see :help tagsrch.txt
>
>
I'm still struggling how to issue help-style commands from the same
directory and get different answers according to documentation im searching.
I mean, many tags would be identical to the different keywords, so how can i
restrict :help, for example to search that specific tags file in the
relevant doc directory and the :help_php, for example to search another
directory.

thanks indeed
alex
--
View this message in context: http://old.nabble.com/set-filetype-in-.vimrc-tp28931594p28958137.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: