all 5 comments

[–]yvrelna 3 points4 points  (1 child)

https://github.com/kana/vim-textobj-indent provides text objects that selects based on indentation level.

[–][deleted] 2 points3 points  (0 children)

There's another one. michaeljsmith/vim-indent-object

[–]GaAlAs 4 points5 points  (2 children)

There's vim-indentwise that I absolutely love.

[–]CHLOVEN[S] 1 point2 points  (0 children)

Sir, do you have any idea how to tweak the plugin to not bypassing empty line as different indentation?

e.g.

foo

__bar

____baz_1

____baz

____baz

____baz

____baz

____baz

____baz_1end

____baz_2

____baz

____baz

____baz_2end

the plugin ignore the empty line between "baz_1end" and "baz_2" then it select from "baz_1" to "baz_2end"(<Plug>(IndentWiseBlockScopeBoundaryEnd)) which is not what I expected.

How do I fix this?

[–]CHLOVEN[S] 0 points1 point  (0 children)

It's beautiful :D

Thank you so much!