feat(vim): config

This commit is contained in:
Michel 2024-11-12 21:17:29 +01:00
parent d416bd803f
commit 3bd96b90b7
2 changed files with 16 additions and 3 deletions

View File

@ -60,7 +60,8 @@ apt install --no-install-recommends \
kitty-terminfo libarchive-tools lsd \ kitty-terminfo libarchive-tools lsd \
meld ncdu \ meld ncdu \
ripgrep trash-cli \ ripgrep trash-cli \
vim-nox vim-tiny- wget xdg-utils xsel vim-nox vim-tiny- wget xdg-utils xsel \
zsh
# Diversion: <new-name> <old-name> # Diversion: <new-name> <old-name>
dpkg-divert --rename --divert /usr/bin/fd{,find} dpkg-divert --rename --divert /usr/bin/fd{,find}
@ -120,7 +121,7 @@ dotfiles config --local status.showUntrackedFiles no
BRANCH=main BRANCH=main
BKDIR=".dotfiles-backup/"; BKDIR=".dotfiles-backup/";
dotfiles checkout ${BRANCH} 2>&1 | egrep "\s+" | awk {'print $1'} | dotfiles checkout ${BRANCH} 2>&1 | egrep "^\s+" | awk {'print $1'} |
xargs -I{} sh -c "mkdir -p \$(dirname ${BKDIR}{}); mv -iv {} ${BKDIR}{}"; xargs -I{} sh -c "mkdir -p \$(dirname ${BKDIR}{}); mv -iv {} ${BKDIR}{}";
dotfiles checkout ${BRANCH} dotfiles checkout ${BRANCH}

14
.vimrc
View File

@ -1,6 +1,18 @@
" :help nvim-from-vim " :help nvim-from-vim
" :checkhealth " :checkhealth
colorscheme darkblue colorscheme darkblue
syntax on
set background=dark set background=dark
set nowrap set hlsearch
set ignorecase
set incsearch
set mouse=a
set number
set relativenumber
set scrolloff=2
set shiftwidth=2 set shiftwidth=2
set smartcase
set nowrap
set nowrapscan