Files
dotfiles-vim/Makefile
2017-10-24 12:42:47 -04:00

21 lines
867 B
Makefile

vimrepo: softlinks
@echo "-----------------------------------------------------------"
@echo "Vim and fzf environment"
@echo "-----------------------------------------------------------"
@echo "Open vim and type :PlugInstall to install extension manager"
softlinks: apps
@test -L ${HOME}/.vim && unlink ${HOME}/.vim || true
@(test -d ${HOME}/.vim && mv ${HOME}/.vim ${HOME}/.vim_old) || true
@ln -vsf ${PWD}/.vim ${HOME}/.vim
@(test -L ${HOME}/.vimrc && unlink ${HOME}/.vimrc) || true
@(test -f ${HOME}/.vimrc && mv ${HOME}/.vimrc ${HOME}/.vimrc_old) || true
@ln -vsf ${PWD}/.vimrc ${HOME}/.vimrc
apps:
@sudo apt install vim
@test -d ${HOME}/.fzf && git --git-dir=${HOME}/.fzf/.git --work-tree=${HOME}/.fzf pull && ${HOME}/.fzf/install --all \
|| (git clone --depth 1 https://github.com/junegunn/fzf.git ${HOME}/.fzf && ${HOME}/.fzf/install --all)