tpope / vim-pathogen

pathogen.vim: manage your runtimepath

Home Page:http://www.vim.org/scripts/script.php?script_id=2332

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding individual plugin to runtimepath

vivien opened this issue · comments

Hi! If I want to add individual plugins to the runtimepath, is it OK to use something like:

function Add(name) abort
  let l:path = '~/.vim/bundle/' . a:name

  execute pathogen#infect(l:path)
  execute pathogen#helptags()
endfunction

Add('vim-sensible')
Add('vim-sleuth')

Should I use pathogen#surround() instead? Is it safe to run pathogen#helptags() multiple times?