From 279b135ffe8688ccdc15a3b10f53ad616753e6f8 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Tue, 25 Jan 2022 10:34:38 +0100 Subject: [PATCH] [vim] Fix listchars error on space From https://stackoverflow.com/a/36374234 --- vim/vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 4c76a3c..fd5864e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -26,7 +26,11 @@ set shiftwidth=4 set noexpandtab " Show whitespace in characters (toggle with set list) -set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» +if has("patch-7.4.710") + set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» +else + set listchars=tab:→\ ,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» +endif "Folding "augroup vimrc