Loading ...
Sorry, an error occurred while loading the content.
 

Re: Bug in vim7? cursor postion & col() vs. utf8-character for showbreak

Expand Messages
  • A.J.Mechelynck
    ... If you aren t working in a Unicode locale, you might try to switch the order of your :set showbreak and :set encoding statements. Best regards, Tony.
    Message 1 of 3 , Sep 5, 2006
      Thomas wrote:
      > I set showbreak to ¦ (some extended character). This works fine for
      > latin1 etc. but causes troubles when the encoding is utf8. Cursor
      > position, col() & virtcol() values etc. are miscalculated for
      > (soft)wrapped lines.
      >
      > Regards,
      > Thomas.
      >
      >

      If you aren't working in a Unicode locale, you might try to switch the
      order of your ":set showbreak" and ":set encoding" statements.


      Best regards,
      Tony.
    Your message has been successfully submitted and would be delivered to recipients shortly.