[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
[Expired for vim (Ubuntu) because there has been no activity for 60 days.] ** Changed in: vim (Ubuntu) Status: Incomplete = Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/491615 Title: Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
I've finally resolved my problem with `vim` working in compatible mode. It was caused by _missing_ configuration files in /etc/vim I don't know why there were no files in /etc/vim - my Ubuntu installation is rather old. I've recorded my findings in bug #667235 to make default behavior of `vi` and `vim` not to be affected by shared configuration files. The bug also portrays another side of problem that `vi` (not `vim`) starts to run in nocompatible mode after `vim` is installed. Vik, Samium, Peter, if the following fixes the problem with nocompatible mode in _vim_ for you, I'll mark this bug as duplucate of #667235 $ sudo aptitude purge vim vim-common vim-gnome vim-gui-common vim-runtime vim-tiny $ sudo aptitude install vim -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
@Peter On Ubuntu 9.10 with vim 2:7.2.245-2ubuntu2, run TERM=xterm vim.basic -u NONE -N in an xterm--arrow keys work just fine in insert mode. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
@Will: You're right. The arrow keys also work when I log-in as a user without a ~/.vimrc file and manually :set nocompatible after starting Vim. Sorry for the noise I guess. One thing though, the above implies to me that the problem is inside my own ~/.vimrc script (correct?) but I don't understand what kind of setting could cause this, and how the workaround I posted above could possibly restore the cursor key functionality?! -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
I'm pretty sure there's a real bug somewhere deep inside of Ubuntu (maybe some system wide thing like termcap or whatever it's called) causing this behavior. I've used Ubuntu's Vim packages for years, always getting annoyed about the described bug. 1. I've created ~/.vimrc, it's nonempty and it's readable. 2. I always start Vim using the vim executable (hard link, symlink, whatever), never as vi. 3. I've verified that, when the bug occurs, :set compatible? prints set nocompatible. 4. The bug occurs when running Vim in either gnome-terminal or xterm (this is why it seems to be a system wide problem to me). 5. Recently I've started compiling Vim 7.3 based on the Mercurial repository at https://vim.googlecode.com/hg/ and even these builds exhibit the same exact problem. 6. I've found a workaround, though I still don't understand how the hell it works after using it for several months: Add the following lines to your ~/.vimrc script: if $TERM =~ 'xterm\|screen' None of the cursor keys work out of the box in Vim while in insert mode using gnome-terminal/xterm but once I manually fix Up the other cursor keys start working magically?! imap Esc[A Up endif One last thing, I'm still running Ubuntu 9.10 (Karmic) so can't confirm whether this problem still exists for newer releases. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
anatoly, it has already been explained why this is not a bug. After installing the package vim, Vim runs in 'nocompatible' mode by default and the cursor keys work. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Will, did you actually check that the explanation is true yourself? See comment #6 I've repeated in on 10.04: sudo aptitude remove vim sudo aptitude install vim Entered vim on existing text file, pressed 'I', the cursor keys produce letters. A-up, B-down, D-left, C-right. See comment #11 for my .vimrc- save - I paste it again: cat .vimrc-save set columns=130 colors desert -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Yes, I did. My only guess is that you are doing some in a non-default way (e.g. by-passing /etc/vim/vimrc). How are you invoking vim? And why is your vimrc named .vimrc-save? -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Will, may I ask you to summarize your decision? ** Changed in: vim (Ubuntu) Status: Invalid = Incomplete -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
** Changed in: vim (Ubuntu) Status: New = Invalid -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
I second Anatoly on this issue. I'd even suggest that 'vi' should default to the compatible mode as well. Rationale: extremely user-visible functionality should work by default. Favoring hjkl movement keys over arrows is, well, so 1999. People expect better. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Seems like more users have problems with this. http://groups.google.com/group/vim_use/browse_thread/thread/6ca92ced0f1580f2# -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Another thread http://ubuntuforums.org/showthread.php?t=445626 -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Anatoly, Vim runs in 'compatible' mode by default. This isn't specific to vim-tiny. The way that you change this is by creating a ~/.vimrc file. The mere presence of this file tells Vim that you know you're using something other than vi and it changes the option to 'incompatible', allowing you to use arrow keys in insert mode. The difference with vim-tiny is that it is solely targeted at base installs (which are typically run by sysadmins as they're setting up the system). Because of this, we only install the binary under the name vi, not vim. Also, we ensure that it runs in 'compatible' mode. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Then on behalf of Ubuntu users I'd like to ask to run Vim in user- friendly mode by default leaving 'compatible' mode for cases when Vim executed as 'vi'. user-friendly mode means that I can install Vim package and run Vim from local terminal as 'vim' in any Ubuntu installation under any user and use keys designed for navigation around text file without creating any additional configs. Any objections? =) -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Reinstalling vim with removing and then `sudo apt-get install vim` did nothing $ cat .vimrc-save set columns=130 colors desert Who is the primary auditory of Ubuntu - sysadmins or users? ** Changed in: vim (Ubuntu) Status: Won't Fix = New -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Sysadmins are more advanced than users and know how to set compatibility mode for vim. Why can't sysadmins call `vim` as `vi`? I understand that this puts `vim` into compatibility mode they need. If `vim` command is available on user system, it is unlikely that user will go through installing it again without specific knowledge of differences between `vim` and `vim-tiny` that, again, belongs to sysadmins. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
@anatoly Seconded. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Install the full 'vim' package if you want a user-friendly vi (complete with syntax highlighting and other bells and whistles); the vim-tiny package is for basic compatibility with traditional vi, which is what many sysadmins tell us they want, and one of the things the 'compatible' option includes is disabling the 'esckeys' option. We don't have space for the full vim package in a standard installation, but anyone who can cope with vi should be able to cope with installing it quite easily. This isn't a gnome-terminal bug either - it's fine for it to send ESC O A on cursor-up. ** Changed in: vim (Ubuntu) Status: Incomplete = Won't Fix -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Oh, and if installing vim didn't solve it then you must be doing something else wrong - are you invoking vim as vim, or as vi? ** Changed in: gnome-terminal Status: New = Invalid -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Thank you for the explanation. This also explains why nano and pico are largely replacing vim-tiny. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
What for is this 'compatible' option is set if it is incompatible even with default Ubuntu terminal? sudo aptitude install vim didn't solve the issue. ** Changed in: vim (Ubuntu) Status: Invalid = Incomplete -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
I propose to make a `vim` default in Ubuntu user friendly. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
Closing the bug as it is user error. vim-tiny defaults to running with the 'compatible' option set. Using :set nocompatible or :set esckeys will restore the expected behavior. ** Changed in: vim (Ubuntu) Status: New = Invalid -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
try this: sudo apt-get install vim solved the same issue i had and the one with backspace etc -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
This is true for plain vim command running in gnome-terminal. Very annoying. -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
** Also affects: gnome-terminal Importance: Undecided Status: New -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 491615] Re: Using arrow keys in vim-tiny while in Insert mode introduces A, B, C, D into text
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/36350038/Dependencies.txt -- Using arrow keys in vim-tiny while in Insert mode introduces A,B,C,D into text https://bugs.launchpad.net/bugs/491615 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs