sponsor Vim development Vim logo Vim Book Ad

lcscheck.vim : check 'listchars' for valid eol byte for utf-8. (Not needed for Vim 6.2)

 script karma  Rating 4/1, Downloaded by 543    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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
lcscheck.vim 1.0 2002-07-19 6.0 Antoine Mechelynck Initial upload
ip used for rating: 54.82.78.5

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo