Fix bootstrapping of neovim

This commit is contained in:
ViViDboarder 2015-10-28 10:50:01 -07:00
parent 25eea9537e
commit be0a6c50d2
2 changed files with 4 additions and 10 deletions

View File

@ -4,16 +4,11 @@
############################ ############################
#! /bin/bash #! /bin/bash
if [ -d ~/.vim ] || [ -f ~/.vimrc ] || [ -d ~/.nvim ] || [ -f ~/.nvimrc ]; then if [ -d ~/.vim ] || [ -f ~/.vimrc ] || [ -d ~/.nvim ] || [ -f ~/.nvimrc ] || [ -d ~/.config/nvim ]; then
echo "Vim files already exist. Please backup or remove .(n)vim and .(n)vimrc" echo "Vim files already exist. Please backup or remove .(n)vim and .(n)vimrc and .config/nvim"
exit 1 exit 1
fi fi
# Try to load .bashrc to load rvm functions
# if [ -f ~/.bashrc ]; then
# . ~/.bashrc
# fi
# Get current directory for future use in links # Get current directory for future use in links
VIM_SYNC_DIR=$(dirname $0) VIM_SYNC_DIR=$(dirname $0)
cd $VIM_SYNC_DIR cd $VIM_SYNC_DIR
@ -21,16 +16,15 @@ VIM_SYNC_DIR=$(pwd)
# Vim # Vim
ln -s $VIM_SYNC_DIR/vimrc ~/.vimrc ln -s $VIM_SYNC_DIR/vim/init.vim ~/.vimrc
ln -s $VIM_SYNC_DIR/vim ~/.vim ln -s $VIM_SYNC_DIR/vim ~/.vim
# Neovim legacy # Neovim legacy
ln -s $VIM_SYNC_DIR/vimrc ~/.nvimrc ln -s $VIM_SYNC_DIR/vim/init.vim ~/.nvimrc
ln -s $VIM_SYNC_DIR/vim ~/.nvim ln -s $VIM_SYNC_DIR/vim ~/.nvim
# Neovim new # Neovim new
mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config} mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config}
ln -s $VIM_SYNC_DIR/vimrc $XDG_CONFIG_HOME/nvim/init.vim
ln -s $VIM_SYNC_DIR/vim $XDG_CONFIG_HOME/nvim ln -s $VIM_SYNC_DIR/vim $XDG_CONFIG_HOME/nvim
# Install all bundles # Install all bundles

View File