-2

You can do v% to select everything in the curly brace including the curly brace. I want to be able to do the same without encapsulating the curly brace.

1 Answers1

-1

Everything inside the curly braces: viB = vi{

Everything inside the parenthesis: vib = vi(

See :help ib or :help iB for more information.

Thanks to u/Sandwich-Resident and u/linglinglongling on this reddit post I made to try and figure out how to do it.

  • Just so you know, trying and asking things at random will get you nowhere. Instead, consider learning properly: `:help user-manual`. Case in point, text objects are introduced very early, in chapter 4, which means that they are entry-level stuff. – romainl Jul 07 '22 at 17:58