From bd34060aacd61add1817781f2cc95519e4c2aeaf Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Sun, 16 Dec 2018 23:35:12 -0500 Subject: [PATCH] vim: ditch :Helptags custom command I wrote up a custom replacement for pathogen's :Helptags before realizing :helptags ALL does the same thing. From the doc: :helpt[ags] [++t] {dir} When {dir} is ALL then all "doc" directories in 'runtimepath' will be used. --- vim/autoload/vimrc.vim | 8 -------- vim/vimrc | 1 - 2 files changed, 9 deletions(-) diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim index 24fbe73..5e69993 100644 --- a/vim/autoload/vimrc.vim +++ b/vim/autoload/vimrc.vim @@ -64,11 +64,3 @@ function! vimrc#SetPasteAndPasteFromClipboard() abort normal! "*p set nopaste endfunction - -" Generates helptags for all doc a la pathogen (using native Vim 8 packages) -function! vimrc#Helptags() abort - let dirs = split(glob(expand(':p:h') . '/pack/*/*/*/doc'), '\n') - for d in dirs - exe 'helptags ' . d - endfor -endfunction diff --git a/vim/vimrc b/vim/vimrc index 545ef4a..9d2b9a4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -196,7 +196,6 @@ nnoremap V :edit $MYVIMRC " COMMANDS {{{ command! -nargs=1 GitGrep call vimrc#GitGrep('') | copen command! CD exe 'cd ' . expand('%:h') -command! Helptags call vimrc#Helptags() " }}} " vim:fdm=marker:sts=4:sw=4 -- libgit2 0.28.4