Remove legacy vim config remnants

This commit is contained in:
2026-04-03 19:32:33 +02:00
parent 9eabb18f54
commit 49c88135f9
4 changed files with 0 additions and 50 deletions

29
.vimrc
View File

@@ -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

View File

@@ -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)

2
TODO
View File

@@ -1,4 +1,2 @@
- check for vimrc
- move to new packer
- for plugins with more config ines than 5, crezte a dedicatet folder/file

View File

@@ -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