You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure whether "text object" is the proper term here, but please read on!
Basically, in Vim, you can type d/hamster, hit enter, and Vim will delete all text until the first occurrence of the word "hamster". This is consistent with the fand t movement commands—you can use them to move to the first occurrence of a letter, or you can delete/change/select all text until that first occurrence.
It would be extraordinarily useful if Vintage could provide similar functionality.
The text was updated successfully, but these errors were encountered:
Right now Vintage just uses the built-in incremental search to implement these. I don't see any way to use incremental search and have it act as a motion. We could implement a completely separate search that just uses an input widget, but that seems like a downgrade at this point...
This is maybe the last feature I miss a lot from vim in Vintage mode. I find myself typing things like d/" or d/< all the time, only to be disappointed. I don't know the specifics about plugin implementation, but from what I've understood, the problem is that using Sublime's incremental search we cannot treat the search hit as a motion; is that correct?
I agree that the standard / search should be Sublime's, since it is more powerful, but is there any way we could make d/ work using another search? Would it be simple to implement? By simple, what I mean is: Is there a documented way to show an input widget, and perform a motion on an Vintage d/ event?
Alternatively, could anyone suggest another workflow that has the same end result (Deleting until a certain match)?
I'm not sure whether "text object" is the proper term here, but please read on!
Basically, in Vim, you can type
d/hamster
, hit enter, and Vim will delete all text until the first occurrence of the word "hamster". This is consistent with thef
andt
movement commands—you can use them to move to the first occurrence of a letter, or you can delete/change/select all text until that first occurrence.It would be extraordinarily useful if Vintage could provide similar functionality.
The text was updated successfully, but these errors were encountered: