I defined InsertEnter autocommand

  :autocmd InsertEnter * call setline(1, strftime("%c"))

and started Insert mode at end of line with "a" or "A".  I expected

  1 Tue Mar 27 20:00:00 2007
  2 abc|
(| is cursor)

But cursor was moved before last character.

  1 Tue Mar 27 20:00:00 2007
  2 ab|c

If "c" is multi-byte character, cursor is displayed at end of line.

  1 Tue Mar 27 20:00:00 2007
  2 abc|

But it is actually placed in middle of multi-byte character.  Then
typing key breaks that character.

  1 Tue Mar 27 20:00:00 2007
  2 ab<first-byte><second-byte>X|<last-byte>


-- 
Yukihiro Nakadaira - [EMAIL PROTECTED]

Reply via email to