Files
dotfiles/install.d/25-vim.sh
Andrejus b62a6c00f9 chore(install): optimize logging, speed, cleanup
- Version logged after [PASS] (not before) across all scripts
- Pre-cache brew package lists with log_info progress
- Read brew version from git describe cache (skip Ruby startup)
- Batch mise use -g calls (single invocation for all tools)
- Replace mise verify step with mise ls --current
- Parallel vim plugin pulls
- Skip donut compile when binary is fresh
- Pre-check macOS defaults before writing (skip fsync when unchanged)
- Pre-check dock state before dockutil calls
- Remove redundant 'already installed' skip logs
- Remove meetingbar and wispr-flow install scripts
- Renumber scripts to fill gaps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 18:09:38 +00:00

30 lines
765 B
Bash
Executable File

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install vim plugins using native vim packages (pack/).
#
vim_pack_dir="$HOME/.vim/pack/plugins/start"
mkdir -p "$HOME/.vim/pack/plugins/start"
vim_plugins=(
"https://github.com/airblade/vim-gitgutter.git"
"https://github.com/tpope/vim-commentary.git"
"https://github.com/tpope/vim-surround.git"
)
for url in "${vim_plugins[@]}"; do
name=$(basename "$url" .git)
dest="$vim_pack_dir/$name"
if [[ -d "$dest" ]]; then
git -C "$dest" pull --quiet &
else
git clone --depth 1 --quiet "$url" "$dest" &
fi
done
wait
log_pass "vim plugins configured"
vim --version 2>/dev/null | sed -n '1p' | log_quote