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. (by michaeljsmith)
nvim-treesitter-textobjects
By nvim-treesitter
vim-indent-object | nvim-treesitter-textobjects | |
---|---|---|
15 | 87 | |
729 | 1,898 | |
- | 3.7% | |
3.3 | 8.5 | |
4 months ago | 10 days ago | |
Vim Script | Scheme | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-indent-object
Posts with mentions or reviews of vim-indent-object.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-14.
-
Is there a plugin to select the parent block of code I am in?
I tried https://github.com/michaeljsmith/vim-indent-object and while it was somewhat promising, it doesn't work correctly.
- Select indented lines in markdown todo list
- Ask HN: Is Vim still worth learning?
- How can it select the inner/outer tag of yaml block
-
Easier way to delete a whole function?
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).
-
vindent.vim v3.0.0
vindent.vim is an alternative to both vim-indentwise and vim-indent-object. The latest version v3.0.0 reimplements every functionality that the two plugin offer, but improved!
-
vindent.vim: a new plugin for indent motions and text objects
I use indent objects from vim-indent-object and indent jumps vim-indentwise alot, but they seem to be dormant for a long time. Also, vim-indentwise provides a lot of unnecessary functionalities IMO, making modifying the source code a bit difficult.
-
Vimrc - How would I set `do` and `end` as delimiter pairs and then have `yid` yank between them?
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.
-
Using Vim for Everything!
I just saw a nice post in /u/medwatt about using vim for VHDL/Verilog and thought I'd contribute a little! * Syntax and error highlight: https://github.com/autozimu/LanguageClient-neovim * Column align: https://github.com/junegunn/vim-easy-align * Remove annoying whitespaces: https://github.com/ntpeters/vim-better-whitespace * Partial (fuzzy) filename search: https://github.com/junegunn/fzf.vim * Outline all declarations inside a file: â €https://github.com/preservim/tagbar * Treat indentations as vim-objects (useful for languages that don't use { }): https://github.com/michaeljsmith/vim-indent-object There is also mouse support in vim for those who want it. Try typing :set mouse=a. Very useful for resizing windows. I also highly recommend you get good at using folds (https://vim.fandom.com/wiki/Folding). It makes it a LOT easier to navigate files. You can save your fold config per-file with :mkview and load it later with :loadview. If I come up with more hints - I'll mention them in the comments!
-
Any vim-indent-object alternative?
Some of the forks https://github.com/michaeljsmith/vim-indent-object/network seem to be quite ahead, you can probably choose and pick a lot of improvements to your fork, then you take over the world!
nvim-treesitter-textobjects
Posts with mentions or reviews of nvim-treesitter-textobjects.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-06.
-
Use treesitter to jump to next argument without going into nested function calls?
I was hoping to use nvim-treesitter-textobjects to jump to the next argument via something like this:
-
Code navigation ctags/cscope/gnu global alternative?
You want to look at nvim-treesitter-textobjects. It let's you define keymaps for navigating text objects defined by treesitter and you can also use them with commands like d, c and so on.
-
My Favorite Vim Oneliners for Text Manipulation
Thank you! It looks like nvim-treesitter-textobjects is a good plugin to start with:
https://github.com/nvim-treesitter/nvim-treesitter-textobjec...
-
How to move between the topmost/root node in treesitter?
I'm aware of nvim-treesitter-textobjects and I suspect my answer lies in this plugin, but is there a way to move between root nodes that is agnostic of the node type?
-
Manipulating and moving between function arguments in Neovim
Thanks! I just started using https://github.com/nvim-treesitter/nvim-treesitter-textobjects, and it works as a charm.
-
Searching for plugin to provide granular treesitter visual mode navigation
nvim-treesitter-textobjects
-
Vim Tip - Jump to start of function or code block
In this case, reading here is probably a good start: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
-
Getting v(a|i)B working in Ruby?
Have a look at https://github.com/nvim-treesitter/nvim-treesitter-textobjects. Set up the @block.inner and @block.outer textobjects and it should work.
-
How do you jump to the beginning of a function
nvim-treesitter-textobjects lets you jump to (for instance) functions more accurately than with a regex-based approach using ]f
Or even better, one can use nvim-treesitter-textobjects. It already provides function/class selection and go-to functionality out-of-the-box.
What are some alternatives?
When comparing vim-indent-object and nvim-treesitter-textobjects you can also consider the following projects:
vim-textobj-user - Vim plugin: Create your own text objects
vim-multiple-cursors - True Sublime Text style multiple selections for Vim
LanguageClient-neovim - Language Server Protocol (LSP) support for vim and neovim.
nvim-treesitter-refactor - Refactor module for nvim-treesitter
vim-textobj-indent - Vim plugin: Text objects for indented blocks of lines
targets.vim - Vim plugin that provides additional text objects
neovim-config
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim-indentwise - A Vim plugin for indent-level based motion.
vim-textobj-python - Text objects for Python.
vscode-neovim - Vim mode for VSCode, powered by Neovim
vim-indent-object vs vim-textobj-user
nvim-treesitter-textobjects vs vim-multiple-cursors
vim-indent-object vs LanguageClient-neovim
nvim-treesitter-textobjects vs nvim-treesitter-refactor
vim-indent-object vs vim-textobj-indent
nvim-treesitter-textobjects vs targets.vim
vim-indent-object vs neovim-config
nvim-treesitter-textobjects vs nvim-treesitter
vim-indent-object vs vim-indentwise
nvim-treesitter-textobjects vs vim-textobj-user
vim-indent-object vs vim-textobj-python
nvim-treesitter-textobjects vs vscode-neovim