From d2613eeaa11081d557cebe4a4b2d27a94b6e4aae Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 27 Dec 2022 22:54:17 -0500 Subject: [PATCH] Add "display" to 'truncate' when available This matches what defaults.vim does. We could omit "lastline" in this case, but it doesn't hurt anything, and keeping it out of an if statement allows it to be set without +eval. --- plugin/sensible.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index d122a9b..73f7fc1 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -49,6 +49,9 @@ if !&sidescrolloff set sidescrolloff=5 endif set display+=lastline +if has('patch-7.4.2109') + set display+=truncate +endif if &listchars ==# 'eol:$' set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+