FS#51591 - [vim] add pacman hook for generating documentation helptags

Attached to Project: Arch Linux
Opened by Eli Schwartz (eschwartz) - Sunday, 30 October 2016, 18:27 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 31 October 2016, 17:12 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It would be nice if the vim-runtime package could provide a pacman hook to replace the multitude of install files for vim plugins which come with documentation.

Attached is a patch for the vim base package to add the hook.
I have been using this hook for months now without any problems.

Note: Contrary to current vimdoc.install styles, my use of silent-ex mode means you don't have to worry about redirecting output and incurring the startup cost of a bash shell (since hooks, unlike install files, don't automatically get one!), also, testing with --startuptime reveals there is no actual need to disable plugins.


A list of packages in the main repos which have documentation and can therefore lose their install files if this hook is added (plus a multitude of AUR packages):
[eschwartz@arch ~]$ pacman -Fo /usr/share/vim/vimfiles/doc/
usr/share/vim/vimfiles/doc/ is owned by community/clewn 1.15-6
usr/share/vim/vimfiles/doc/ is owned by community/notmuch-vim 0.22.2-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-a 2.18-7
usr/share/vim/vimfiles/doc/ is owned by community/vim-airline 0.8-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-align 37.43-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-bufexplorer 7.4.6-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-ctrlp 1.79-3
usr/share/vim/vimfiles/doc/ is owned by community/vim-fugitive 2.2-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-indent-object 1.1.2-3
usr/share/vim/vimfiles/doc/ is owned by community/vim-jedi 0.8.0-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-latexsuite 20141116-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-nerdcommenter 2.4.0-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-nerdtree 5.0.0-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-omnicppcomplete 0.4.1-7
usr/share/vim/vimfiles/doc/ is owned by community/vim-project 1.4.1-7
usr/share/vim/vimfiles/doc/ is owned by community/vim-rails 5.2_23266-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-supertab 2.1-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-surround 2.1-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-syntastic 3.7.0-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-tagbar 2.6.1-4
usr/share/vim/vimfiles/doc/ is owned by community/vim-taglist 46-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-ultisnips 3.1-2
usr/share/vim/vimfiles/doc/ is owned by community/vim-vcscommand 1.99.47-1
usr/share/vim/vimfiles/doc/ is owned by community/vim-workspace 1.0b1-7
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Monday, 31 October 2016, 17:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  vim-8.0.0055
Comment by Anatol Pomozov (anatolik) - Sunday, 30 October 2016, 23:09 GMT
vim-8.0.0055 with your hook has been pushed to [testing]. Please check that it works as expected.
Comment by Eli Schwartz (eschwartz) - Monday, 31 October 2016, 01:22 GMT
Works great, thanks.

Loading...