From e7bc60ac1b5a60399418397e18f6959a0194ae54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miros=C5=82aw=20Prag=C5=82owski?= Date: Sat, 22 Nov 2014 08:21:54 +0100 Subject: [PATCH] Setup 80 line marker, showing trailing whitespaces (and should remove them on save but this is not working fo me) --- my_configs.vim | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/my_configs.vim b/my_configs.vim index 82388213..0c0529e8 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -6,11 +6,21 @@ highlight LineNr ctermfg=darkgrey set cursorline """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" => my custom settings +" => my custom settings """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set number " line numbers set nocompatible " choose no compatibility with legacy vi set nowrap " don't wrap lines +set colorcolumn=80 +highlight ColorColumn ctermbg=DarkGray + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => trailing whitespaces (show & remove on save) +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +set list +set listchars=tab:▸\ ,trail:· +autocmd BufWritePre * :%s/\s\+$//e """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => custom key maps