Cannot reproduce on plucky.
I agree that arrow-keys support is a must. Last time I was forced to use
“hjkl” was in the mid nineties, and only because I was using a minitel
as a makeshift terminal: vi (from Solaris, IIRC) did already support the
arrow keys back then.
That being said, I cannot reproduce your issue:
1. /etc/vim/vimrc.tiny seems to never be sourced
According to a comment in that file, it is supposed to be sourced by vim
when invoked as ‘vi’. This does not seem to be the case for vim.basic:
$ sudo update-alternatives --set vi /usr/bin/vim.basic
$ vi --version | grep 'vimrc file'
system vimrc file: "/etc/vim/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
$ vi --clean
# inside vi:
:set compatible? → nocompatible
And not even for vim.tiny:
$ sudo update-alternatives --set vi /usr/bin/vim.tiny
$ vi --version | grep 'vimrc file'
# same list as before
$ vi --clean
:set compatible? → nocompatible
I even ran ‘vi --clean’ under strace: it did not open
/etc/vim/vimrc.tiny .
2. The arrow keys work reliably
Whether using vim.basic or vim.tiny, whether invoked as ‘vim’ or as
‘vi’, whether ‘compatible’ is set or unset, my arrow keys seem to always
work (gnome-terminal, TERM=xterm-256color).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2107647
Title:
Drop compatible mode for vim-tiny
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/2107647/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs