I guess observationally  it does not make much sense   

And actually I kind-of disagree      If   you  are on  X     You   switch to 
Insert mode  ( then you insert some blanks ) 

When you switch out of insert mode you should still  be on  X  

The insert mode "caret" indicates where the insertion takes place not the 
character the "cursor" is on (which has not changed)
So when you switch out of insert mode the cursor should still be on the same 
character  ( not the previous character) 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
James McCoy
Sent: Monday, April 02, 2012 5:23 PM
To: [email protected]
Subject: Re: Cursor and Insert-Mode ( cursor is back-spacing ) ( version 
7.3.382 )

On Mon, Apr 02, 2012 at 05:45:41PM +0000, Bovy, Stephen wrote:
> Every Time I switch  IN and OUT-OF  Insert-Mode  ( THE-CURSOR ) moves 
> ( BACK-WARDS )  ( ONE-POSITION )

Then don't do that?

In all seriousness, though, this is due to the different cursor positions in 
normal vs. insert mode, which isn't displayed well in the terminal.

In normal mode, your cursor sits on top of characters as that it what normal 
mode operates on.  In insert mode, your cursor sits between characters (and 
this is represented in gvim be a thin vertical cursor instead of a block 
cursor).

So, when you leave insert mode, the cursor has to move from "between 
characters" to "on top of characters" and that happens by sitting on topo of 
the character to the left of where the cursor was in insert mode
-- i.e. the last character that was insert/edited.

If you want to toggle between insert and normal mode without the cursor moving, 
then enter insert mode by using "a" instead of "i".  That will start insert 
mode after, instead of before, the cursor the character was resting on in 
normal mode.  So, when you leave insert mode, your cursor will be back on the 
character it was before entering insert mode.

--
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

-- 
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

Raspunde prin e-mail lui