Vimrc - How would I set `do` and `end` as delimiter pairs and then have `yid` yank between them?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • vim-textobj-rubyblock

    A custom text object for selecting ruby blocks.

  • /u/Desperate_Place485, I think https://github.com/nelstrom/vim-textobj-rubyblock should have just what you're looking for.

  • vim-indent-object

    Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.

  • This isn't exactly what you're looking for, but assuming you've indented everything between do and end, you can use the vim indent object plugin (https://github.com/michaeljsmith/vim-indent-object), then do something like yii, or dii to do it inside the indent.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vim-textobj-function

    Vim plugin: Text objects for functions

  • Also check this out: https://github.com/kana/vim-textobj-function

  • vim-textobj-elixir

    Make text objects with various elixir block structures.

  • and another one: https://github.com/andyl/vim-textobj-elixir

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts