Sublime Forum

Vintage mode, 's' substitute & text objects

#1

I’m enjoying vintage mode a lot and find it fairly easy to fix some things that I’ve customized in vim. However, I’ve noticed an issue with the substitute command and text objects which I haven’t noticed when searching around on this forum.

If I use ‘v’ to select a text object and then use ‘s’ to substitute, say the word inside quotes: “this” from t to the end (cursor on t, ‘v’, ‘e’, ‘s’), then it deletes the character after the selection as well, so I’m left with ". In VIM, I should be left with “” and the cursor inside the quotes to replace the text I had selected. If I select in the opposite order, “this” (cursor on s, ‘v’, ‘b’, ‘s’) then it will leave the t, “t”, when I should still be left with “”. I’ve started to look a bit at the way vintage motion commands work, but I don’t know how the various parts of vintage and sublime work together in order to fix the problem.

Any help would be much appreciated, thanks!

0 Likes