From 49c88135f97058dbd88e67fe3d4814abe46f73f7 Mon Sep 17 00:00:00 2001 From: tracer Date: Fri, 3 Apr 2026 19:32:33 +0200 Subject: [PATCH] Remove legacy vim config remnants --- .vimrc | 29 ----------------------------- README.md | 9 --------- TODO | 2 -- install.sh | 10 ---------- 4 files changed, 50 deletions(-) delete mode 100644 .vimrc diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 6eb3c60..0000000 --- a/.vimrc +++ /dev/null @@ -1,29 +0,0 @@ -func! STL() - let stl = '%f [%{(&fenc==""?&enc:&fenc).((exists("+bomb") && &bomb)?",B":"")}%M%R%H%W] %y [%l/%L,%v] [%p%%]' - let barWidth = &columns - 65 " <-- wild guess - let barWidth = barWidth < 3 ? 3 : barWidth - - if line('$') > 1 - let progress = (line('.')-1) * (barWidth-1) / (line('$')-1) - else - let progress = barWidth/2 - endif - - " line + vcol + % - let pad = strlen(line('$'))-strlen(line('.')) + 3 - strlen(virtcol('.')) + 3 - strlen(line('.')*100/line('$')) - let bar = repeat(' ',pad).' [%1*%'.barWidth.'.'.barWidth.'(' - \.repeat('-',progress ) - \.'%2*0%1*' - \.repeat('-',barWidth - progress - 1).'%0*%)%<]' - - return stl.bar -endfun - -hi def link User1 DiffAdd -hi def link User2 DiffDelete -set stl=%!STL() - -set number -set ignorecase -set laststatus=2 -colorscheme slate diff --git a/README.md b/README.md index fdf8227..8c73d70 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,3 @@ To install oh-my-zsh and symlink the config files run: ```sh .config/dotfiles/install.sh``` This replaces the managed dotfiles in your home directory (`.zshrc`, `.zprofile`, `.gitconfig`, `.p10k.zsh`, `~/.config/kitty`, `~/.config/nvim`, and `~/.config/tmux`). On macOS it also links `~/.config/karabiner/karabiner.json` and `~/.config/karabiner/assets`, while leaving Karabiner's local backup files unmanaged. The Kitty HUD launcher reads the host-specific display pin from the dotfiles repo when running on the host named `studio`. - -![user prompt](https://24unix.net/build/images/Settings/user_screen.png) -[original image, 1.8M](https://24unix.net/build/images/Settings/user_screen_original.png) - -![root shell](https://24unix.net/build/images/Settings/root_screen.png) -[original image, 1.7M](https://24unix.net/build/images/Settings/root_screen_original.png) - -![vim](https://24unix.net/build/images/Settings/vi_screen.png) -[original image, 5.9M](https://24unix.net/build/images/Settings/vi_screen_original.png) diff --git a/TODO b/TODO index 595a42a..282dd17 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,2 @@ -- check for vimrc - move to new packer - for plugins with more config ines than 5, crezte a dedicatet folder/file - diff --git a/install.sh b/install.sh index e1594f8..1522c4b 100755 --- a/install.sh +++ b/install.sh @@ -83,7 +83,6 @@ setup_color() { apply_dotfiles() { echo "${BLUE}Applying dotfiles...${RESET}" - remove_legacy_dotfile "$HOME/.vimrc" link_dotfile "$DOTFILES_DIR/.zshrc" "$HOME/.zshrc" link_dotfile "$DOTFILES_DIR/.zprofile" "$HOME/.zprofile" link_dotfile "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig" @@ -121,15 +120,6 @@ validate_prerequisites() { fi } -remove_legacy_dotfile() { - target_path=$1 - - if [ -L "$target_path" ] || [ -e "$target_path" ]; then - echo "${YELLOW}Removing legacy $target_path${RESET}" - rm -rf "$target_path" - fi -} - replace_dir() { source_path=$1 target_path=$2