about summary refs log tree commit diff
path: root/vim/@install
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xvim/@install16
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

Consider giving Nix/NixOS a try! <3