AndrewRadev / sideways.vim

A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
http://www.vim.org/scripts/script.php?script_id=4171
MIT License
481 stars 9 forks source link

Wrong text object for an argument - (A<B, D> asd) #35

Closed boris-petrov closed 5 years ago

boris-petrov commented 5 years ago

This doesn't work right:

(A<B, D> asd)

Be on A and press daa - the result is (D> asd).

AndrewRadev commented 5 years ago

This seems to be working now as expected -- daa on the A should delete the whole argument. The fix is probably due to some changes I've made to get Rust support to work right, but not 100% sure if it'll work reliably.

boris-petrov commented 5 years ago

It doesn't seem to work for Java. For example:

public Foo(Map<String, Object> map) {

Being on M and pressing daa - this is left: public Foo(Object> map) {.

It seems to work for a single type argument though.

AndrewRadev commented 5 years ago

I had only tested it for C++. I just added support for Java that should work the same way.

boris-petrov commented 5 years ago

Yes, this is now fixed, thanks for the support!