From b5e5a74cdeb9234692a509886c015e5447483e28 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 22 Feb 2017 09:51:33 +0000 Subject: [PATCH] Only use listchars space if the Vim version supports it --- vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 09f7544..c554189 100644 --- a/vimrc +++ b/vimrc @@ -38,7 +38,6 @@ set guioptions=cr set ignorecase set linebreak set list -set listchars=eol:¶,tab:→ ,trail:~,extends:>,precedes:<,space:· set modelines=0 set nojoinspaces set number @@ -57,6 +56,12 @@ silent! colorscheme desert silent! filetype plugin indent on silent! syntax on +if has("patch-7.4.710") + set listchars=eol:¶,tab:→ ,trail:~,extends:>,precedes:<,space:· +else + set listchars=eol:¶,tab:→ ,trail:~,extends:>,precedes:< +endif + if has("gui_running") if has("gui_gtk2") set guifont=Monospace\ Regular\ 10