Dennis Gill
Dennis Gill

Reputation: 29

Copy text surrounded by curly braces

I'm trying to copy the text inside curly braces and I need to copy the text plus the curly braces into register 'b'. There is a Vim command that could do this?

Upvotes: 2

Views: 717

Answers (1)

Mateen Ulhaq
Mateen Ulhaq

Reputation: 27271

Try it visually first:

va{"by

But you can go faster by doing it non-visually:

"bya{

Upvotes: 6

Related Questions