How to select between brackets (or quotes or …) in Vim?

前端 未结 9 2026
时光说笑
时光说笑 2020-12-12 08:55

I\'m sure there used to be a plugin for this kinda stuff, but now that I need it, I can\'t seem to find it (naturally), so I\'ll just ask nice and simple.

What is th

9条回答
  •  旧巷少年郎
    2020-12-12 09:37

    I would add a detail to the most voted answer:

    If you're using gvim and want to copy to the clipboard, use

    "+

    To copy all the content between brackets (or parens or curly brackets)

    For example: "+yi} will copy to the clipboard all the content between the curly brackets your cursor is.

提交回复
热议问题