-
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.
-
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.
If your function is nicely indented (like your example), you can use an indent object daI delete it. Indent objects are provided by vim-indent-object (more well-known but inactive) and vindent.vim (an extended version by me).
If your function is nicely indented (like your example), you can use an indent object daI delete it. Indent objects are provided by vim-indent-object (more well-known but inactive) and vindent.vim (an extended version by me).
For Python, for example, I use https://github.com/bps/vim-textobj-python.
There may be something similar in JS, quick search suggested: https://github.com/thinca/vim-textobj-function-javascript though I never personally used it.
There are also https://github.com/jamesl33/vim-textobj-function and https://github.com/haya14busa/vim-textobj-function-syntax
There are also https://github.com/jamesl33/vim-textobj-function and https://github.com/haya14busa/vim-textobj-function-syntax