diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 00:19:01 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 00:19:01 +1200 |
commit | ea2f138e73cd645d2850d79dac346d8b64a53c25 (patch) | |
tree | 2167358e49d8ff1750d1c692efa50c9f1fa4455c | |
parent | Merge branch 'release/v5.27.0' into develop (diff) | |
download | dotfiles-ea2f138e73cd645d2850d79dac346d8b64a53c25.tar.gz dotfiles-ea2f138e73cd645d2850d79dac346d8b64a53c25.zip |
Use Unicode characters for 'lcs' extends/precedes
-rw-r--r-- | vim/vimrc | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -616,8 +616,21 @@ set listchars+=nbsp:+ " Non-breaking spaces " These two are actually somewhat misplaced, in that they don't represent " characters, but the line wrap state. They're useful, though. " -set listchars+=extends:> " Unwrapped text to screen right -set listchars+=precedes:< " Unwrapped text to screen left +" If the current encoding supports it, use these characters for the markers, +" as they're visually distinctive: +" +" extends: Signals presence of unwrapped text to screen right +" » U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK +" precedes: Signals presence of unwrapped text to screen left +" « U+00BB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK +" +" Failing that, '<' and '>' will do fine. +" +if has('multi_byte_encoding') + set listchars+=extends:» listchars+=precedes:« +else + set listchars+=extends:> listchars+=precedes:< +endif " Don't let your editor's options be configured by content in arbitrary files! " Down with modelines! Purge them from your files! |