From 4887d8c064a24c00bf0dafa3d475a119e360ba31 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 21 Jun 2018 11:07:22 +1200 Subject: Use new 'display' setting 'truncate' if available --- vim/vimrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index ae0d2e9f..971a3667 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -51,10 +51,13 @@ set backspace+=start " The start of current insertion " filetype handle it set comments= -" When wrapping text, if a line is so long that not all of it can be shown on -" the screen, show as much as possible anyway; by default Vim fills the left -" column with @ symbols instead, which I don't find very helpful -set display=lastline +" Show only one line of @ symbols for a truncated last line if possible, and +" show none at all if not +if v:version > 704 || v:version == 704 && has('patch2109') + set display=truncate +else + set display=lastline +endif " Don't wait to see if Escape in insert mode precedes a key for an Alt binding set noesckeys -- cgit v1.2.3