From eafc8610aa99b4a219d819979e107c17239b409b Mon Sep 17 00:00:00 2001 From: id101010 Date: Wed, 31 Aug 2016 18:05:43 +0200 Subject: [PATCH 1/2] Updated zshrc and vimrc --- vim/vimrc | 10 +++++++--- zsh/zshrc | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 077bd16..3ea8e3b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,12 +1,14 @@ "vimrc - VIM Configuration file" -"Autointend" +"Autointend and autoscroll 3 lines above the cursor" :set cindent +:set scrolloff=3 -"Tabstop, Shiftwith and replace tabs with spaces" +"Tabstop, Shiftwith and replace tabs with spaces but not in makefiles :set tabstop=4 :set shiftwidth=4 :set expandtab +:autocmd FileType make set noexpandtab "Stuff needed by urxvt" :set nocompatible @@ -15,7 +17,9 @@ "Syntaxhighlighting, colorscheme, linenumbers" :syntax on -:colorscheme calmar256-dark +:set background=dark +:colorscheme lettuce +:set t_Co=256 :set number :set list :set nowrap diff --git a/zsh/zshrc b/zsh/zshrc index 34c77fe..f603339 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -98,7 +98,7 @@ alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias diff='colordiff' alias ports='netstat -tulanp' -alias penis="cowsay -f head-in ahh ja so lässig" +alias cal='cal -m' setopt autopushd pushdsilent pushdtohome setopt pushdignoredups From c94516d05339151b6845aa8eb52b93882de3bf8c Mon Sep 17 00:00:00 2001 From: id101010 Date: Wed, 31 Aug 2016 18:14:42 +0200 Subject: [PATCH 2/2] Better colors in manpages --- zsh/zshrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index f603339..0a99c00 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -80,13 +80,14 @@ DIRSTACKSIZE=20 # Colored manpages man() { - env LESS_TERMCAP_mb=$'\E[30;43m' \ - LESS_TERMCAP_md=$'\E[01;38;5;74m' \ - LESS_TERMCAP_me=$'\E[0m' \ - LESS_TERMCAP_se=$'\E[0m' \ - LESS_TERMCAP_so=$'\E[38;5;246m' \ - LESS_TERMCAP_ue=$'\E[0m' \ - LESS_TERMCAP_us=$'\E[04;38;5;146m' \ + env \ + LESS_TERMCAP_mb=$(printf "\e[1;31m") \ + LESS_TERMCAP_md=$(printf "\e[1;31m") \ + LESS_TERMCAP_me=$(printf "\e[0m") \ + LESS_TERMCAP_se=$(printf "\e[0m") \ + LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ + LESS_TERMCAP_ue=$(printf "\e[0m") \ + LESS_TERMCAP_us=$(printf "\e[1;32m") \ man "$@" }