diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 11:07:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 11:07:22 +1200 |
commit | 4887d8c064a24c00bf0dafa3d475a119e360ba31 (patch) | |
tree | 0ef18bf893c467edefa523a5423982a492dcb350 /vim/vimrc | |
parent | Use slightly more correct v:version check (diff) | |
download | dotfiles-4887d8c064a24c00bf0dafa3d475a119e360ba31.tar.gz dotfiles-4887d8c064a24c00bf0dafa3d475a119e360ba31.zip |
Use new 'display' setting 'truncate' if available
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |