Vim Konfiguration

This commit is contained in:
2025-05-23 23:10:48 +02:00
parent 34ef5503ce
commit d2069b3916
6 changed files with 3252 additions and 0 deletions

21
Vim/install-vim.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
TARGET_DIR="~/"
# Vim installieren, wenn es noch nicht installiert ist
command -v vim >/dev/null 2>&1 || sudo apt update && sudo apt install -y vim
# Vim-Konfiguration kopieren
if [ -d "~/.Vim" ]; then
echo "Ordner existiert bereits"
else
cp -r "./.Vim" $TARGET_DIR
fi
if [ -f "~/.vimrc" ]; then
echo "Vim Konfigurationsdatei existiert bereits"
else
cp "./vimrc" $TARGET_DIR
fi