mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 12:33:47 -05:00
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.
This commit is contained in:
@@ -49,6 +49,9 @@ if !&sidescrolloff
|
|||||||
set sidescrolloff=5
|
set sidescrolloff=5
|
||||||
endif
|
endif
|
||||||
set display+=lastline
|
set display+=lastline
|
||||||
|
if has('patch-7.4.2109')
|
||||||
|
set display+=truncate
|
||||||
|
endif
|
||||||
|
|
||||||
if &listchars ==# 'eol:$'
|
if &listchars ==# 'eol:$'
|
||||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||||
|
|||||||
Reference in New Issue
Block a user