Swap to nvim, but make sure vim still works

This commit is contained in:
Andrew Tomaka 2017-08-31 00:19:46 -04:00
parent fbc528da5f
commit f113e0428c
No known key found for this signature in database
GPG key ID: C78D1A81582BAC86
7 changed files with 34 additions and 14 deletions

View file

@ -1,14 +1,18 @@
excludes = -I Makefile -I README.md
symlinks = $(shell find . \( ! -iname "Makefile" ! -iname "README.md" ! -iname ".*" ! -path "./.git/*" ! -path "./zsh/*" \) | sed 's|./||')
symlinks = $(shell find . \( ! -iname "Makefile" ! -iname "README.md" ! -iname ".*" ! -path "./.git/*" ! -path "./zsh/*" ! -path "./nvim/*" ! -iname "nvim" \) | sed 's|./||')
.PHONY: $(symlinks)
.PHONY: $(symlinks) nvim
all: install
install: plug-vim $(symlinks)
nvim:
mkdir -p ~/.config/nvim
cp nvim/init.vim ~/.config/nvim/
plug-vim:
if test ! -d ~/.vim/autoload/plug.vim ; then \
if test ! -f ~/.vim/autoload/plug.vim ; then \
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ; \
fi