Reputation: 29123
I'm using surround.vim and want to yank text between :
(in a PATH expression). When I type ys:
, it goes into command-line mode. How can I prevent that?
Upvotes: 0
Views: 2505
Reputation: 196516
You have got everything wrong:
()""''{}[]<>
) is done with built-in text-objects like i(
or a<
,surround indeed works on text-objects but there's no built-in text-object for colons so:
ys:
because :
is not a text-oject or even a motion,ysi:
either for the same reason,If you want to yank between surrounding colons, you basically have three possibilities. Ordered by complexity:
T:yt:
which you could map to yi:
if you wantUpvotes: 3