i'm writting my Vim script, but I found something "interesting":

if you press c in visual mode, you will find the cursor is at the next
character after your selection region. even this character is nobeing.
e.g: when you select the "def":
abc[def]
after you press c, the cursor is after "c":
abc# <= this is the cursor

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!

so, you can't use :normal in your script-file, it will bring strange
results.

what can i do?

p.s. i tried :se ve=onemore, :se ve=all and :norm gvdl, i got a beep,
the most effective solution is call cursor(0, col('.')+1), but i think
it's rude. can we find any good ways?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to