lcscheck.vim : check 'listchars' for valid eol byte for utf-8. (Not needed for Vim 6.2)
script karma |
Rating 3/2,
Downloaded by 1047 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Antoine Mechelynck |
|
script type |
utility |
|
description |
Under utf-8, characters 128 and over become multi-byte. Therefore, under Vim 6.1 or earlier, they should not be used for the option values in 'listchars'. This script takes care of the "eol:" sub-option, the only one which gave me problems. If you use characters >= 128 for other sub-options, similar scripts can easily be written (based on this one) to take care of them.
This script has intentionally been abundantly commented to make it understandable.
See vimtip#246 for a related tip. |
|
install details |
Paste or source this script text immediately before switching over to unicode, inside the statement
if has("multi_byte")
if you use it, but otherwise before setting 'tenc' 'enc' 'fencs' etc. to the values used for Unicode editing. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.117.197.188
|