Sane mouse handling. Changing cursor shape in normal and insert mode.