remove vim/ and add symlinks

Remove the vim configuration files from the repository. I have moved fully over
to neovim and so these configuration files have stagnated. Instead, let's symlink the
neovim config for vim

* remove vim/
* add symlinking code in install/link.sh to symlink neovim config for vim
* symlink config/nvim -> ~/.vim
* symlink config/nvim/init.vim -> ~/.vimrc
* Remove old/outdated info from README
* Revise Vim and Neovim section of README
This commit is contained in:
Nick Nisi
2016-01-16 15:32:41 -06:00
parent 6f2bfd121d
commit dccebf5756
13 changed files with 39 additions and 3091 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env zsh
DOTFILES=$HOME/.dotfiles
@@ -31,3 +31,25 @@ for config in $DOTFILES/config/*; do
ln -s $config $target
fi
done
# create vim symlinks
# As I have moved off of vim as my full time editor in favor of neovim,
# I feel it doesn't make sense to leave my vimrc intact in the dotfiles repo
# as it is not really being actively maintained. However, I would still
# like to configure vim, so lets symlink ~/.vimrc and ~/.vim over to their
# neovim equivalent.
echo "\nCreating vim symlinks"
echo "=============================="
typeset -A vimfiles=(~/.vim $DOTFILES/config/nvim ~/.vimrc $DOTFILES/config/nvim/init.vim)
for file in "${(@k)vimfiles}"; do
# echo "$file -> $vimfiles[$file]"
if [ -e ${file} ]; then
echo "${file} already exists... skipping"
else
echo "Creating symlink for $file"
ln -s $vimfiles[$file] $file
fi
done