Ingo Karkat wrote:

> :startinsert should work like typing "i" in Normal mode (according to
> the help).  I found a small discrepancy while developing a custom
> mapping:
> 
> vim -N -u NONE
> ifoo<Esc>
> :echo string(@.) getpos("'[") getpos("']")
> 'foo' [0, 1, 1, 0] [0, 1, 4, 0]
> i<Esc>
> :echo string(@.) getpos("'[") getpos("']")
> '' [0, 1, 3, 0] [0, 1, 3, 0]
> :quit!
> 
> Contrast with:
> 
> vim -N -u NONE
> :startinsert
> foo<Esc>
> :echo string(@.) getpos("'[") getpos("']")
> 'foo' [0, 1, 1, 0] [0, 1, 4, 0]
> :startinsert
> <Esc>
> :echo string(@.) getpos("'[") getpos("']")
> 'foo' [0, 1, 1, 0] [0, 1, 4, 0]
> :quit!
> 
> Note how neither register . nor the change marks are updated when using
> :startinsert and no insertion took place (i.e. input mode was immediately left
> via <Esc>).
> 
> Reproducible on Vim 7.3.000 (Windows 7, x86 and x64) as well as the latest
> 7.3.535 (big version, Linux/x86).

Well, why does the difference matter?

It won't be easy to change.

-- 
hundred-and-one symptoms of being an internet addict:
19. All of your friends have an @ in their names.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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