Change back to using vim
This commit is contained in:
parent
55ac27ff96
commit
e230b05594
22
Makefile
22
Makefile
@ -10,12 +10,12 @@ PROGRAMS = calcurse nvim newsboat mpv bash compton
|
||||
.PHONY : install update clean
|
||||
|
||||
install :
|
||||
#nvim
|
||||
@which nvim > /dev/null 2>&1
|
||||
#vim
|
||||
@which vim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "nvim found! Installing .vimrc ..."; \
|
||||
[ -f ~/.config/nvim/init.vim ] && mv ~/.config/nvim/init.vim ~/.config/nvim/init.vim.old; \
|
||||
cp $(SRC)/vim/vimrc ~/.config/nvim/init.vim; \
|
||||
echo "vim found! Installing .vimrc ..."; \
|
||||
[ -f ~/.vimrc ] && mv ~/vimrc ~/.vimrc.old; \
|
||||
cp $(SRC)/vim/vimrc ~/.vimrc; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
@ -59,10 +59,10 @@ install :
|
||||
|
||||
update:
|
||||
#vim
|
||||
@which nvim > /dev/null 2>&1
|
||||
@which vim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "nvim found! Updating vimrc files with existing versions..."; \
|
||||
[ -f ~/.config/nvim/init.vim ] && cp ~/.config/nvim/init.vim $(SRC)/vim/vimrc; \
|
||||
echo "vim found! Updating vimrc files with existing versions..."; \
|
||||
[ -f ~/.vimrc ] && cp ~/.vimrc $(SRC)/vim/vimrc; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
@ -99,10 +99,10 @@ update:
|
||||
|
||||
clean :
|
||||
#vim
|
||||
@which nvim > /dev/null 2>&1
|
||||
@which vim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "nvim found! removing existing config files and reinstalling *.old"; \
|
||||
[ -f ~/.config/nvim/init.vim.old ] && mv ~/.config/nvim/init.vim.old ~/.config/nvim/init.vim; \
|
||||
echo "vim found! removing existing config files and reinstalling *.old"; \
|
||||
[ -f ~/.vimrc.old ] && mv ~/.vimrc.old ~/.vimrc; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
|
Reference in New Issue
Block a user