On Mon, Nov 23, 2009 at 12:37:16AM EST, bill lam wrote: > > On Mon, 23 Nov 2009, Chris Jones wrote: > > > > I have this in my .vimrc: > > > > nmap <Space> i<Space><Esc> > > Did you mean nnoremap?
I must have seen that 'nmap' was for normal mode and since it worked at the time, I didn't read the rest of the manual :-) Generally speaking, I don't remap much of anything and as a result, I know very little about it. As recommended (and after having read the relevant bits in the manual, in particular usr_40.txt, I tried to change the mapping to: nnoremap <Space> i<Space><Esc> I started a vim instance, and saw that this had taken care of the crazy animation, only one space is now inserted, but there's another strange issue. Not only is a space inserted when hitting the space bar in normal mode, but the cursor is moved forward what looks like 12 characters, or to the end of the line if there are less than 12 characters in the buffer: If I have this in the buffer: 1234567890 1234567890 1234567890 With the cursor on line 1, column 1, after hitting the space bar, a single space is inserted and everything else in line 1 is moved one column to the right: 1234567890 1234567890 1234567890 ^ But something I didn't except happens: the cursor ends up over the '3' in line 2 ..!!! If I undo and move the cursor to the '2' on line 1, column 2, I end up with the cursor over the '4' in line 2, etc. 1 234567890 1234567890 1234567890 ^ It looks like the cursor jumps 12 characters/cells forward after completing the space insertion. Must be some side-effect of something I have 'set' in my .vimrc, but I can't think of what. Thanks, CJ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
