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.
Asked
Active
Viewed 236 times
-2

Dogunbound hounds
- 433
- 5
- 15
-
https://stackoverflow.com/search?q=%5Bvim%5D+select+inside – phd Jul 07 '22 at 17:55
-
Those do. I just couldn't google them. That's why I put this question up – Dogunbound hounds Jul 07 '22 at 18:06
1 Answers
-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.

Dogunbound hounds
- 433
- 5
- 15
-
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