Closed mike-hoegeman closed 12 years ago
Yes. Vim has "inclusive" and "exclusive" motions. I haven't considered about it yet. I'm planning to add "inclusive" argument to motionFixedFrom:To:. It will be like
motionFixedFrom:(NSUInteger)from To:(NSUInteger)To Inclusive:(BOOL)inclusive
Let me know if the problem is not about the "inclusive" thing.
Consider the dvw
command, should the v change between inclusive and exclusive?
Thanks for the advice. I did not know such behavior of Vim...
I fixed the problem. Now I make enum value to represent motion type. They have "CHARACTERWISE_EXCLUSIVE", "CHARACTERWISE_INCLUSIVE","LINEWISE". "dvw" is also supported now. (I haven't implemented "d C-v w". but its easy to implement I think)
Let me know if some operations do not work fine.
excellent! thanks..
On Sat, Mar 3, 2012 at 6:56 AM, JugglerShu reply@reply.github.com wrote:
I fixed the problem. Now I make enum value to represent motion type. They have "CHARACTERWISE_EXCLUSIVE", "CHARACTERWISE_INCLUSIVE","LINEWISE". "dvw" is also supported now. (I haven't implemented "d C-v w". but its easy to implement I think)
Let me know if some operations do not work fine.
Reply to this email directly or view it on GitHub: https://github.com/JugglerShu/XVim/issues/24#issuecomment-4301216
word movement "w" & "b" work properly now. but commands like dw & cw are deleting using the same span of characters which is not correct e.g. if the cursor is on the first slash on the line below and the "dw" is typed it deletes from the first slash through and including the '1' character. when moving by word that's what you want, but not for calculating a word span for dw, cw, etc..
for dw it should delete the slashes and the space but not the '1' character