mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 13:07:36 +00:00
Fix bootstrapping of neovim
This commit is contained in:
parent
25eea9537e
commit
be0a6c50d2
@ -4,16 +4,11 @@
|
||||
############################
|
||||
#! /bin/bash
|
||||
|
||||
if [ -d ~/.vim ] || [ -f ~/.vimrc ] || [ -d ~/.nvim ] || [ -f ~/.nvimrc ]; then
|
||||
echo "Vim files already exist. Please backup or remove .(n)vim and .(n)vimrc"
|
||||
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 and .config/nvim"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Try to load .bashrc to load rvm functions
|
||||
# if [ -f ~/.bashrc ]; then
|
||||
# . ~/.bashrc
|
||||
# fi
|
||||
|
||||
# Get current directory for future use in links
|
||||
VIM_SYNC_DIR=$(dirname $0)
|
||||
cd $VIM_SYNC_DIR
|
||||
@ -21,16 +16,15 @@ VIM_SYNC_DIR=$(pwd)
|
||||
|
||||
|
||||
# Vim
|
||||
ln -s $VIM_SYNC_DIR/vimrc ~/.vimrc
|
||||
ln -s $VIM_SYNC_DIR/vim/init.vim ~/.vimrc
|
||||
ln -s $VIM_SYNC_DIR/vim ~/.vim
|
||||
|
||||
# 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
|
||||
|
||||
# Neovim new
|
||||
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
|
||||
|
||||
# Install all bundles
|
||||
|
Loading…
Reference in New Issue
Block a user