On 2月18日, 下午8时33分, Stahlman Family <[email protected]> wrote:
> Neil Bird wrote:
> > Around about 18/02/09 10:32, StarWing typed ...
> >> BUT, if you use :normal command, the behavior is changed, if you
> >> select "def", and input <ESC>:norm! gvc, it changed to:
> >> abc
> >> ^ the cursor is here!
>
> > Well, according to the help for :normal, you can't remain in 'insert'
> > mode after it's finished, so ':normal gvc' is equivalent to 'gvc<Esc>' an
> > that then gives to the same thing, I think.
>
> > If you really want to end up in insert mode, I guess you want something
> > like:
>
> > normal gvx
> > startinsert
no, it doesn't work...
I use it in a function, witch called in insert mode (<C-R>=Func()
<CR>), and the cursor is still at the left of place it should be.
> Or...
> normal! gvc
> startinsert
> call cursor(line('.'), col('.') + 1)
> ...to leave the cursor where it would have been had you not used normal.
>
> Brett S.
now i had to go this way... but i think it's rude...so i'm finding
other ways...
but now cca.vim can work!! even though it use a rude way...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---