commit bd34060aacd61add1817781f2cc95519e4c2aeaf (patch)
parent e9d435f193a3c44f045660f056fc26b9cdd977c1
Author: Alexander Karle <akarle@umass.edu>
Date: Sun, 16 Dec 2018 23:35:12 -0500
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.
Diffstat:
2 files changed, 0 insertions(+), 9 deletions(-)
diff --git 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('<sfile>:p:h') . '/pack/*/*/*/doc'), '\n')
- for d in dirs
- exe 'helptags ' . d
- endfor
-endfunction
diff --git a/vim/vimrc b/vim/vimrc
@@ -196,7 +196,6 @@ nnoremap <leader>V :edit $MYVIMRC<CR>
" COMMANDS {{{
command! -nargs=1 GitGrep call vimrc#GitGrep('<args>') | copen
command! CD exe 'cd ' . expand('%:h')
-command! Helptags call vimrc#Helptags()
" }}}
" vim:fdm=marker:sts=4:sw=4