It has been found that on a new installation of Ubuntu [lets say 13.04] , when you try to write some code in VI editor, the arrow keys are not working as expected.
It becomes very frustrating when you wants to navigate in the code using arrow key and instead of cursor moving up and down you see characters like A , B , C or D in middle of text.