Thank you for your bug report. However, the behavior you have described
is in fact the desired functionality. Traditional vi uses the h,j,k,l
keys, rather than arrow keys, for moving the cursor, and it is intended
that the command invoked by "vi" be as similar as possible to a
traditional vi. If you would like to make use of vim's enhanced
functionality, such as arrow-keys support, you should invoke it as
"vim".
If you really want vi to invoke an instance of vim with extended
(backwards-incompatible) functionality, you may use update-alternatives
to change the /usr/bin/vi link to point to (say) /usr/bin/vim.full or
/usr/bin/vim.gnome rather than /usr/bin/vim.tiny.
Note that many terminals send "up arrow" as the sequence <ESC> O A,
which in vi has the meaning "go to normal mode, open a new line above
the current one in insert mode, and insert the character 'A'", which
corresponds to the behavior you are seeing. This is one of the reasons a
traditional vi would not accept arrow keys. As a non-compatible feature,
vim uses a "timeout" value, where if it sees "<ESC>", it won't switch to
normal mode right away until it's followed by a character that doesn't
correspond to a "special" escape sequence (such as arrow keys), or a
short timeout has expired. This also means, that in vim, when you
actually do type <ESC> O A..., expecting to open a new line above the
current one and then start to type text, you may be surprised by vim's
behavior if you type it a little too quickly.
** Changed in: vim (Ubuntu)
Status: Confirmed => Rejected
--
vi not working properly under cli or terminal under gui
https://bugs.launchpad.net/bugs/97246
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs