about summary refs log tree commit diff
path: root/vim/@install
blob: acf350029f5360347dce9fc84245a178570e1f3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

[ ! -d "${HOME}/.vim" ] && \
    mkdir -p "${HOME}/.vim"

stow \
    --target="${HOME}" \
    --ignore="^@.*" \
    --verbose \
    vim

if command -v nvim >/dev/null 2>&1 && [ ! -f "${XDG_CONFIG_HOME}/nvim/init.vim" ]
then
    mkdir -p "${XDG_CONFIG_HOME}/nvim"
    ln -s "${HOME}/.vim/vimrc" "${XDG_CONFIG_HOME}/nvim/init.vim"
fi

Consider giving Nix/NixOS a try! <3