Hello,
There has been some discussion on persistent marks in vim in the past...

For those who don't remember it was about marks that move on  
insertion, deletion:

.... this is some text ... ... ...
____________^ mark

now you delete some text and the mark should move
.... some text ... ... ...
_______^


which would be necessary to implement stuff like yasnippet properly in  
vim.

i've tried implementing this behavior in yzis already, however it  
seems to be a lot more complicated in vim. as i've been thinking about  
this issue a lot i thought that the solution might be a lot simpler  
than it seems. rather than trying to change the mark behavior.

would it be possible for you to give us a way to track the amount of  
characters entered in vim on each insert in vim? then we could simply  
compute the movement of our marks manually. maybe some counter that  
will start at 0 every time we enter insert mode? chances are that when  
the counter wraps around, we won't want to use the counter anyway.


maybe this is actually a bad idea. if so, enlighten me please.

Regards,
Reza

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui