forked from wting/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 797 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: all
upgrade:
@echo "Updating branch..."
git pull
@echo "Removing unused plugins..."
vim +PluginClean! +qall
@echo "Updating plugins..."
vim +PluginInstall! +qall
full-upgrade: upgrade
./vim_user_install.sh
plugins-clean:
@echo "Removing unused plugins..."
vim +PluginClean! +qall
plugins-purge:
@echo "Removing all plugins..."
@-rm -rf ~/.vim/bundle/
plugins-upgrade:
@echo "Installing plugins..."
vim +PluginInstall +qall
install: vundle fonts
@-[ -L ~/.vimrc ] && rm ~/.vimrc
@-[ -f ~/.vimrc ] && mv -v ~/.vimrc ~/.vimrc.bak.${RANDOM}
ln -sfv ~/.vim/.vimrc ~/.vimrc
reinstall: plugins-purge install
vundle:
@-rm -rf ~/.vim/bundle/vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
# required for powerline
fonts:
fc-cache -vf ~/.fonts