path: root/vim/vimrc
diff options
authorTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:07:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:07:22 +1200
commit4887d8c064a24c00bf0dafa3d475a119e360ba31 (patch)
tree0ef18bf893c467edefa523a5423982a492dcb350 /vim/vimrc
parentUse slightly more correct v:version check (diff)
Use new 'display' setting 'truncate' if available
Diffstat (limited to 'vim/vimrc')
1 files 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
+ set display=lastline
" Don't wait to see if Escape in insert mode precedes a key for an Alt binding
set noesckeys