diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-29 00:41:20 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-29 00:41:20 +1300 |
commit | b28d72ee001daca760ef879ab973db5fd6f79054 (patch) | |
tree | ac3b31bbeee9338dafe13668c1b03d375fc71067 /vim/vimrc | |
parent | Restore dotfiles(7) manual as pre-built dist file (diff) | |
download | dotfiles-b28d72ee001daca760ef879ab973db5fd6f79054.tar.gz dotfiles-b28d72ee001daca760ef879ab973db5fd6f79054.zip |
Load Vim Pathogen with :runtime
Per this suggestion from the `vim-pathogen` FAQ:
<https://github.com/tpope/vim-pathogen#faq>
>>Can I put pathogen.vim in a submodule like all my other plugins?
>
>Sure, stick it under `~/.vim/bundle`, and prepend the following to
>your vimrc:
>
> runtime bundle/vim-pathogen/autoload/pathogen.vim
This method avoids using symbolic links, which is desirable in general,
and also removes the need for the `install-vim-pathogen` dependency of
the `install-vim-plugin` target, since this is now done in Vim
configuration.
This also takes away another of the steps required for setting up the
Vim configuration on Windows.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -14,6 +14,11 @@ runtime! config/*.vim " If our version isn't ancient and Pathogen is available, call it to load all " the plugins in .vim/bundle; these are saved as submodules if v:version >= 701 + + " Bootstrap Pathogen + runtime bundle/pathogen/autoload/pathogen.vim + + " Run Pathogen to broaden 'realtimepath' for plugin code and help tags silent! call pathogen#infect() silent! call pathogen#helptags() |