nextvi icon indicating copy to clipboard operation
nextvi copied to clipboard

implementing vim-like dw

Open loosefish-scapegrace opened this issue 1 year ago • 1 comments

Hi,

I've been trying to implement a patch to implement vim's (inconsistent, tbf) d/c/yw, but I've run into trouble implementing it. I think that the logic for this should go inside vc_motion, which as far as i can see is where the dw command is executed from. I assume that I need to replace the o2 and r2 variables after they are read by vi_motion, going back before the newline if the w enters a new line, but I wasn't able to figure out the implementation for this.

Is this the right way of doing this, or is there a better solution?

loosefish-scapegrace avatar Nov 04 '23 23:11 loosefish-scapegrace