Hi, KKde wrote: > > One of my friend is facing problem, where in vim the end of line is > affixed with some box like character. Remember 'set list' is off. > > Is there some setting that is causing to show some character at the > end of line?
this can happen when you edit a with DOS line endings, i.e., carriage return plus line feed, the 'fileformats' does not contain DOS, but only UNIX or MAC, and if the 'isprint' option contains 13 (the numeric code for carriage return) or 10 (the one for line feed) or a range including 13 or 10. In this case Vim wants to show you that there is an additional carriage return or line feed. Normally they would be displayed as ^M or ^J, but because the corresponding numeric value is included in 'isprint', Vim tries to show a glyph from the current font. Most fonts don't have a glyph for control characters, so a substitue is chosen -- which, e.g., on Windows happens to be a rectangle. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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 To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
