On Monday, April 14, 2014 5:29:33 AM UTC-5, Dominic Humphries wrote: > Entering the commands to leave insert mode & insert a new line above the > current one, beginning with certain letters, results in punctuation on the > current line instead. > > To reproduce: > Start vim, *quickly* type the keys: i<Esc>Om > > Expected result: > New line created above the current one with the letter 'm' in it > > Actual result: > Hyphen inserted on current line > > Also affects: > Letters j,k,n,o > j gives *, k gives +, m gives -, n gives ., o gives / > > Vim version: 7.4 (as installed by Ubuntu 13.10) > Happens on my machine, my co-worker's machine, several VMs and to some (not > all) of the people I asked about it on IRC. Definitely requires that the > typing is done quickly. Causes me problems very frequently because I write a > lot of Perl and when I go to declare a variable, I get "-y $foo" on the > current line instead of "my $foo" on the previous line.
This looks like you're using Vim in a terminal, and you are typing fast enough for Vim to interpret your keystrokes as terminal key codes. What are your 'ttimeout' and 'ttimeoutlen' options set to? Normally you can fix problems like this by setting 'ttimeout' to ON and 'ttimeoutlen' to a small value, like 100 (ttimeoutlen is in milliseconds). See the help for both options for details. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
