XVim2 icon indicating copy to clipboard operation
XVim2 copied to clipboard

Deletion on vertical selecting would swallow characters

Open xsown opened this issue 7 years ago • 8 comments

Given source code as follows:

titleLabel?.layer.borderColor = UIColor.yellow.cgColor
titleLabel?.layer.borderWidth = 1.0

ctrl-v and selecting "titleLabel?." , d (or x), it gives me

Color = UIColor.yellow.cgColor
layer.borderWidth = 1.0

What was actually deleted is "titleLabel?.layer.border" in the first line and "titleLabel?." in the second line.

xsown avatar Sep 28 '18 08:09 xsown

I am experiencing this aswell.

technetos avatar Oct 02 '18 19:10 technetos

I use this feature alot in vim when deleting comment symbols for commented out blocks of code. I would be willing to try and fix it when I have some time. Would you mind taking a brief look at he problem to see roughly where I should be looking? I dont know objective c but I know c, c++, java, rust, swift and more so I am fairly confident I can figure it out.

technetos avatar Oct 04 '18 17:10 technetos

I can't reproduce it on Xcode10 macOS 10.13.6. I can't reproduce it on Xcode10.1 macOS 10.13.6. I can't reproduce it on Xcode10 (10A255), Mojave (10.14).

pebble8888 avatar Oct 11 '18 07:10 pebble8888

I can't reproduce it in Xcode10 macOS 10.13.6.

Using Xcode 10 (10A255) on macOS 10.14 should reproduce it

langyanduan avatar Oct 13 '18 07:10 langyanduan

Can confirm. Happens to me on Xcode 10 (10A255) and Mojave (10.14) as well.

EmDee avatar Oct 15 '18 13:10 EmDee

Yep - same here on Xcode 10 (10A255), High Sierra 10.13.6.

sashaweiss avatar Oct 16 '18 22:10 sashaweiss

Same isse here. Good news is Xcode 10 supports multiple cursors. Only works with XVim2 in insert mode though.

Place additional cursors via ⌃+⇧+Click or with column select (⌥+Click+Drag), or using ⌃+⇧+Up/Down.” https://mjtsai.com/blog/2018/04/29/multiple-cursors-in-xcode/

rednebmas avatar Oct 30 '18 00:10 rednebmas

Not that I expected it to work, but just an fyi:

Still happening with Xcode Version 10.1 (10B61)

EmDee avatar Nov 02 '18 09:11 EmDee