lcscheck.vim : check 'listchars' for valid eol byte for utf-8. (Not needed for Vim 6.2)
| script karma
Downloaded by 576
Comments, bugs, improvements
script versions (upload new version)
|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.
|Paste or source this script text immediately before switching over to unicode, inside the statement
if you use it, but otherwise before setting 'tenc' 'enc' 'fencs' etc. to the values used for Unicode editing.
Click on the package to download.
ip used for rating: 18.104.22.168