Remove legacy vim config remnants
This commit is contained in:
29
.vimrc
29
.vimrc
@@ -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
|
|
||||||
@@ -17,12 +17,3 @@ To install oh-my-zsh and symlink the config files run:
|
|||||||
```sh .config/dotfiles/install.sh```
|
```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`.
|
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`.
|
||||||
|
|
||||||

|
|
||||||
[original image, 1.8M](https://24unix.net/build/images/Settings/user_screen_original.png)
|
|
||||||
|
|
||||||

|
|
||||||
[original image, 1.7M](https://24unix.net/build/images/Settings/root_screen_original.png)
|
|
||||||
|
|
||||||

|
|
||||||
[original image, 5.9M](https://24unix.net/build/images/Settings/vi_screen_original.png)
|
|
||||||
|
|||||||
2
TODO
2
TODO
@@ -1,4 +1,2 @@
|
|||||||
- check for vimrc
|
|
||||||
- move to new packer
|
- move to new packer
|
||||||
- for plugins with more config ines than 5, crezte a dedicatet folder/file
|
- for plugins with more config ines than 5, crezte a dedicatet folder/file
|
||||||
|
|
||||||
|
|||||||
10
install.sh
10
install.sh
@@ -83,7 +83,6 @@ setup_color() {
|
|||||||
apply_dotfiles() {
|
apply_dotfiles() {
|
||||||
echo "${BLUE}Applying dotfiles...${RESET}"
|
echo "${BLUE}Applying dotfiles...${RESET}"
|
||||||
|
|
||||||
remove_legacy_dotfile "$HOME/.vimrc"
|
|
||||||
link_dotfile "$DOTFILES_DIR/.zshrc" "$HOME/.zshrc"
|
link_dotfile "$DOTFILES_DIR/.zshrc" "$HOME/.zshrc"
|
||||||
link_dotfile "$DOTFILES_DIR/.zprofile" "$HOME/.zprofile"
|
link_dotfile "$DOTFILES_DIR/.zprofile" "$HOME/.zprofile"
|
||||||
link_dotfile "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
|
link_dotfile "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
|
||||||
@@ -121,15 +120,6 @@ validate_prerequisites() {
|
|||||||
fi
|
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() {
|
replace_dir() {
|
||||||
source_path=$1
|
source_path=$1
|
||||||
target_path=$2
|
target_path=$2
|
||||||
|
|||||||
Reference in New Issue
Block a user