On Wed, Jul 28, 2010 at 1:38 PM, Charles Campbell <[email protected]> wrote: > However, the > > if has("conceal") && &enc == "utf-8" > > lines are still needed. With <enc.vimrc> as: > > -------------------------------------------------- > set nocp > syn on > set cole=3 > -------------------------------------------------- > > and using > > -------------------------------------------------- > vi -u enc.vimrc -c ":e ++enc=latin abc.tex" > --------------------------------------------------
The '++enc=latin1' solely changes what &fenc is. Since the actual contents of the file are all ASCII, this doesn't actually change anything. If you meant that you're running in a UTF-8 locale (like en_US.UTF-8) and you ran: env LC_ALL=en_US.ISO8859-1 vi -u enc.vimrc abc.tex then you're right, but only because your terminal is expecting UTF-8 bytes and you've told Vim (tangentially) to send latin1 bytes to the terminal. "set tenc=utf-8" will cause Vim to display all the glyphs which exist in both UTF-8 and latin1 correctly and the others using the an upside-down question mark (for me) instead of the "unknown character" glyph. This sounds like maybe the conceal feature is relying on &enc instead of &tenc for determining whether the concealed characters should be displayed, which would be a bug IMO. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]> -- You received this message from the "vim_dev" 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
