svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Count is not properly applied to cut #28

Closed p0deje closed 10 years ago

p0deje commented 10 years ago

Assuming we have the following code (| is a cursor):

paragraph 1

pa|ragraph 2

paragraph 3

paragraph 4

When I press 2dap, the text becomes:

paragraph 1

paragraph 4

But when I press 2map, the text becomes:

paragraph 1

paragraph 2

paragraph 4

I believe this is incorrect behaviour.

svermeulen commented 10 years ago

You are correct. m2ap works but 2map does not.

p0deje commented 10 years ago

Oh, didn't know about m2ap. Will use it for now, but I believe this should still be fixed.

svermeulen commented 10 years ago

I agree - should work similar to d

svermeulen commented 10 years ago

I think I fixed this on the develop branch, if you want to try that and let me know. I'm also going to play with it a few days to make sure before merging it in

p0deje commented 10 years ago

Just tested on develop - works smooth so far.

Thanks for such a quick fix and great plugin!

svermeulen commented 10 years ago

No problem - glad you're liking it :) Let me know if you find any other issues

svermeulen commented 10 years ago

Hey you'll want to update again. I broke cases where you don't have a count. (fixed now)