From 96e59661211ed8aa87afacc90ae0b3129176c692 Mon Sep 17 00:00:00 2001 From: Flo Date: Sat, 23 Jun 2018 23:34:49 +0200 Subject: [PATCH] update vim and zsh default config vim : do not convert tab into spaces .. zsh : vi alias + editor, screen alias --- vimrc | 3 +-- zshrc | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 3900178..aaff3a1 100644 --- a/vimrc +++ b/vimrc @@ -7,10 +7,9 @@ let g:airline_powerline_fonts = 1 filetype plugin indent on " show existing tab with 4 spaces width set tabstop=4 +set softtabstop=0 noexpandtab " when indenting with '>', use 4 spaces width set shiftwidth=4 -" On pressing tab, insert 4 spaces -set expandtab " Enable highlighted search set hlsearch " Disable VIM matching parenthesis highlighting diff --git a/zshrc b/zshrc index 2d3b7e9..c186d0c 100644 --- a/zshrc +++ b/zshrc @@ -106,3 +106,10 @@ fi # no beep for console #setterm -blength 0 #TODO if term console + +# force vim, usefull on FreeBSD that do not use update-alternatives stuff +alias vi="vim" +export EDITOR="vim" + +# force screen unicode to render powerfont correctly +alias screen="screen -U"