Home Download Buy Blog Forum Support

Vintage mode, 's' substitute & text objects

Vintage mode, 's' substitute & text objects

Postby rupert on Wed Jun 27, 2012 4:29 pm

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!
Posts: 1
Joined: Wed Jun 27, 2012 4:24 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 24 guests