I'm afraid that this is not a bug, but rather is the desired behavior for vi.
It is intended that vi work, as much as closely, like traditional vi. This includes the fact that arrow keys are not used for movement (h,j,k,l are). The "A,B,C,D" you are seeing are because your terminal emulator sends <Esc> O A to terminal programs to signify "up arrow". As a feature, vim interprets this sequence to mean "up arrow", but vi will interpret it literally, by switching to normal mode, opening a new line in insert mode before the current one, and typing "A". If you don't want a traditional vi, you should really be invoking it as vim. If you absolutely do not want this behavior, you could edit the file /etc/vim/vimrc.tiny, and remove or comment the lines let g:debian_cp=1 set nocompatible This behavior can also be "fixed" by installing a vim variant other than vim.tiny (such as vim-gnome), and ensuring that update-alternatives has vi pointing at the new variant. ** Changed in: vim (Ubuntu) Status: Needs Info => Rejected -- Erratic Vi on feisty https://bugs.launchpad.net/bugs/114973 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs