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

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui