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
|
.PHONY : install update clean
|
||||||
|
|
||||||
install :
|
install :
|
||||||
#nvim
|
#vim
|
||||||
@which nvim > /dev/null 2>&1
|
@which vim > /dev/null 2>&1
|
||||||
@if [ $$? -eq 0 ]; then \
|
@if [ $$? -eq 0 ]; then \
|
||||||
echo "nvim found! Installing .vimrc ..."; \
|
echo "vim found! Installing .vimrc ..."; \
|
||||||
[ -f ~/.config/nvim/init.vim ] && mv ~/.config/nvim/init.vim ~/.config/nvim/init.vim.old; \
|
[ -f ~/.vimrc ] && mv ~/vimrc ~/.vimrc.old; \
|
||||||
cp $(SRC)/vim/vimrc ~/.config/nvim/init.vim; \
|
cp $(SRC)/vim/vimrc ~/.vimrc; \
|
||||||
fi
|
fi
|
||||||
#bash
|
#bash
|
||||||
@which bash > /dev/null 2>&1
|
@which bash > /dev/null 2>&1
|
||||||
@ -59,10 +59,10 @@ install :
|
|||||||
|
|
||||||
update:
|
update:
|
||||||
#vim
|
#vim
|
||||||
@which nvim > /dev/null 2>&1
|
@which vim > /dev/null 2>&1
|
||||||
@if [ $$? -eq 0 ]; then \
|
@if [ $$? -eq 0 ]; then \
|
||||||
echo "nvim found! Updating vimrc files with existing versions..."; \
|
echo "vim found! Updating vimrc files with existing versions..."; \
|
||||||
[ -f ~/.config/nvim/init.vim ] && cp ~/.config/nvim/init.vim $(SRC)/vim/vimrc; \
|
[ -f ~/.vimrc ] && cp ~/.vimrc $(SRC)/vim/vimrc; \
|
||||||
fi
|
fi
|
||||||
#bash
|
#bash
|
||||||
@which bash > /dev/null 2>&1
|
@which bash > /dev/null 2>&1
|
||||||
@ -99,10 +99,10 @@ update:
|
|||||||
|
|
||||||
clean :
|
clean :
|
||||||
#vim
|
#vim
|
||||||
@which nvim > /dev/null 2>&1
|
@which vim > /dev/null 2>&1
|
||||||
@if [ $$? -eq 0 ]; then \
|
@if [ $$? -eq 0 ]; then \
|
||||||
echo "nvim found! removing existing config files and reinstalling *.old"; \
|
echo "vim found! removing existing config files and reinstalling *.old"; \
|
||||||
[ -f ~/.config/nvim/init.vim.old ] && mv ~/.config/nvim/init.vim.old ~/.config/nvim/init.vim; \
|
[ -f ~/.vimrc.old ] && mv ~/.vimrc.old ~/.vimrc; \
|
||||||
fi
|
fi
|
||||||
#bash
|
#bash
|
||||||
@which bash > /dev/null 2>&1
|
@which bash > /dev/null 2>&1
|
||||||
|
Reference in New Issue
Block a user