added vim and zsh files

nixos
Moritz Böhme 2021-03-28 17:15:49 +02:00
parent 36b964da59
commit cce4bb937f
4 changed files with 62 additions and 0 deletions

12
.vim/.netrwhist Executable file
View File

@ -0,0 +1,12 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =2
let g:netrw_dirhist_2='/home/moritz/bin'
let g:netrw_dirhist_1='/home/moritz/.config/sxhkd'
let g:netrw_dirhist_0='/media/ssd2/Management/Jackett/config/Jackett/DataProtection'
let g:netrw_dirhist_9='/media/ssd2/Management/Jackett/config/Jackett'
let g:netrw_dirhist_8='/media/ssd2/Management/Jackett/config'
let g:netrw_dirhist_7='/media/ssd2/Management/Jackett'
let g:netrw_dirhist_6='/media/ssd2/Management/Jackett/config/Jackett'
let g:netrw_dirhist_5='/media/ssd2/Management/Jackett/config'
let g:netrw_dirhist_4='/media/ssd2/Management/Jackett'
let g:netrw_dirhist_3='/home/moritz'

@ -0,0 +1 @@
Subproject commit 5f10746c3cea49046eb9385e80447e3354477795

16
.vimrc Executable file
View File

@ -0,0 +1,16 @@
inoremap jk <ESC>
packadd! dracula
syntax on " highlight syntax
colorscheme dracula
set number " show line numbers
set noswapfile " disable the swapfile
set hlsearch " highlight all results
set ignorecase " ignore case in search
set incsearch " show search results as you type
vmap <C-c> "+yi
vmap <C-x> "+c
vmap <C-v> c<ESC>"+p
imap <C-v> <C-r><C-o>+

33
.zshrc Executable file
View File

@ -0,0 +1,33 @@
# Use powerline
USE_POWERLINE="true"
SAVEHIST=200
HISTFILE=~/.zsh_history
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
cbonsai -p --seed $RANDOM -m "Welcome back"
sleep 2
startx &> /dev/null
fi
if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin:$PATH"
fi
autoload -Uz compinit
compinit
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/doc/pkgfile/command-not-found.zsh
alias ls='exa -lh'
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'
cheat() {
curl -s "cheat.sh/$1" | bat
}
eval "$(LC_ALL="en_US.UTF-8" starship init zsh)"