coolceph / vimrc

Best vimrc for CoolCeph team, used for C/C++, Python, PHP and Go.
https://github.com/coolceph/vimrc
GNU General Public License v2.0
63 stars 32 forks source link

Can we merge install.sh and setup.sh into one script? #8

Closed yuandong1222 closed 8 years ago

yuandong1222 commented 8 years ago

Then whether install or update, we can simply run the same script.

ketor commented 8 years ago

setup.sh now support install, update, make_tar.

Usage: setup.sh -i/-u/-b -i -- install vimrc -u -- update vimrc's plugins -b -- backup ~/.vim

If we give up git submodules, we could use setup.sh only. All we really need in the repo is vimrc and setup.sh.

I looks into other vimrc repo, they install plugins use pathogen like setup.sh or use VBundle/NeoBundle. So do you think we should upgrade our install method and give up submodules?

yuandong1222 commented 8 years ago

why we can't run git submodules init & update everything?

yuandong1222 commented 8 years ago

I am not familiar with VBundle/NeoBundle, so I have no idea.

ketor commented 8 years ago

VBundle/NeoBundle install plugin by git clone repo in ~/.vim/bundle, while pathogen do not provides this method.

If do not use submodules, our repo will be very simple and git submodules add more complexity for vimrc.

Also the ~/.vim dir don't be forced to as a repo dir, this will reduce the space occupied by vimrc.

That's what I think, to make everything more simple and easy to understand.

ketor commented 8 years ago

Update the setup.sh, now everything clean.

I ignored the problem of how to update vimrc itself. Use git repo in ~/.vim will make update easy.