iago-lito / vim-visualMarks

mark and retrieve selections in Vim
GNU General Public License v2.0
21 stars 6 forks source link

Feature request: support indels #12

Open iago-lito opened 8 years ago

iago-lito commented 8 years ago

Inserting and deleting lines obviously break recorded selections:

thi*s text between stars
has been
recorde*d to `a`

will become

new* line
this text between stars
has bee*n
recorded to `a`

Which is obviously not what one might intent.

It seems like Vim's native mark registers support such an adaptation to line indels. How does it work? Could we imagine updating the dictionnary on each indel?