It is odd that one of the files I get when I expand vim-php-manual.tgz
is vim-php-manual.tgz
.
When I expand the archive, I get a bunch of *.txt
files, a tags
file, and the odd file I just mentioned. No subdirectories, nothing else. So all you have to do is create a directory, expand the archive into it, and adjust the 'tags'
option in vim. (Use a FileType
autocommand or put it in .../after/ftplugin/php.vim
if you want the setting only when you are editing PHP.)
I think the idea is to use the tags
file that comes bundled with the archive, not to generate it from the help files using vim. If you need to regenerate the tags file, then follow the instructions on the page where you found the archive.
The :Helptags
function (part of the pathogen plugin) only parses files with the extension .txt
that are in a directory doc/
somewhere under 'runtimepath'
. If you do not want to overwrite the tags
file when you run :Helptags
, then call the directory where you put these files something other than doc/
, for example doc-php/
or vim-php-manual/
.
I just did that, putting the files in ~/.vim/vim-php-manual/
, and ran :Helptags
and it did not have any effect.