Same thing was here when using vi as sudo arrow keys where wrongly mapped if used vim it was OK, also after installing vim.full it is all working OK
-- Arrow keys are incorrectly mapped in vim https://launchpad.net/bugs/62980 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs