Hi,

Chris Jones wrote:
> 
> 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.

you don't have 12 spaces after your nnoremap command, do you? I.e.,

  :nnoremap <Space> i<Space><Esc>____________

where every underscore means a literal space character. If that's the
case and the 'whichwrap' option includes a lower case 's' your mapping
would move 12 characters to the right, continuing in the next line if
the current line is not long enough.

Regards,
Jürgen


-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to