diff options
Diffstat (limited to '')
-rwxr-xr-x | vim/@install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vim/@install b/vim/@install new file mode 100755 index 0000000..acf3500 --- /dev/null +++ b/vim/@install @@ -0,0 +1,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 |