tpope / vim-pathogen

pathogen.vim: manage your runtimepath
http://www.vim.org/scripts/script.php?script_id=2332
Vim License
12.12k stars 1.16k forks source link

Using plugins globally #175

Closed ghost closed 8 years ago

ghost commented 8 years ago

I've installed some plugins via pathogen. Install pathogen: mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Install syntastic as pathogen bundle: cd ~/.vim/bundle && git clone https://github.com/scrooloose/syntastic.git

At this point it's in ~/.vim directory of my root user. I'd like to install this plugin to be globally available for all users on the box, but I'm having trouble finding out how to go about doing it. All the instructions seem to talk about installing plugins under $HOME/.vim or in my case under ~/.vim. What have I to do that all user can use the plugins out of the box?

I am using centos 7

tpope commented 8 years ago

/usr/share/vim/vimfiles will work for most setups.

coolaj86 commented 7 years ago

For those of us that need a little hand-holding: ~/.vim/ becomes /usr/share/vim/vimfiles/

mkdir -p /usr/share/vim/vimfiles/autoload /usr/share/vim/vimfiles/bundle && \
curl -LSso /usr/share/vim/vimfiles/autoload/pathogen.vim https://tpo.pe/pathogen.vim

pushd /usr/share/vim/vimfiles/bundle
git clone git://github.com/tpope/vim-sensible.git
git clone https://github.com/scrooloose/syntastic.git
popd
seisowl commented 4 years ago

On Ubuntu 18.04, it's /usr/share/vim/addons/plugin Also,to install pathogen, use: sudo apt install -y vim-pathogen