On Saturday, May 26, 2012 6:14:33 AM UTC-5, Bastien Dejean wrote: > Hi, > > I'd like to visualize specific space characters through the *conceal* > mechanism. > > Here's my first (failed) attempt: > > syntax match ThreePerEmSpace " " conceal cchar=⅓ > syntax match FourPerEmSpace " " conceal cchar=¼ >
You've included the special characters literally, which will only work if you tell Vim what encoding to use to read the file. Otherwise it defaults to something probably incorrect (on my system it defaults to latin1). Try putting "scriptencoding utf-8" at the top of your script, or specifying the character by codepoint: syntax match ThreePerEmSpace '[\u2004]' conceal cchar=⅓ syntax match FourPerEmSpace '[\u2005]' conceal cchar=¼ Note from just above :help /\%[] that this will only work if 'l' is not in 'cpoptions'. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php