Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. nvim-various-textobjs

nvim-various-textobjs

MITLua

A bundle of over 30 new text objects for Neovim, enhancing editing with forward-seeking motions and pattern-based selections.

GitHubGitHub
769 stars29 forks0 contributors

What is nvim-various-textobjs?

nvim-various-textobjs is a Neovim plugin that bundles over 30 new text objects, extending the editor's native selection capabilities. It provides intuitive motions for selecting indentation blocks, subwords, URLs, key-value pairs, and many other code and text patterns, often with forward-seeking behavior to operate without precise cursor placement. The plugin solves the problem of repetitive navigation and manual selection by offering quick, context-aware text objects for common editing tasks.

Target Audience

Neovim users, particularly developers and writers who frequently edit structured text or code and want faster, more expressive text manipulation without heavy dependencies. It's especially valuable for those who work with multiple file types and prefer lightweight, pattern-based solutions.

Value Proposition

Developers choose nvim-various-textobjs for its extensive collection of practical text objects that work out-of-the-box across many languages, its forward-seeking motions that reduce navigation overhead, and its lightweight design that complements rather than replaces existing Treesitter-based tools. It offers a versatile, configurable set of selections that enhance editing efficiency with minimal setup.

Overview

Bundle of more than 30 new text objects for Neovim.

Use Cases

Best For

  • Quickly selecting and manipulating indented code blocks in languages like Python or YAML
  • Operating on specific parts of compound identifiers like camelCase or snake_case variables
  • Editing URLs, filepaths, or color codes within text without precise cursor placement
  • Selecting key-value pairs or assignment sides in configuration files or code
  • Working with diagnostics, folds, or visible window areas for focused edits
  • Creating custom motions or commands that leverage forward-seeking text object behavior

Not Ideal For

  • Projects requiring exact, language-specific text objects for complex code structures, where Treesitter-based plugins like nvim-treesitter-textobjects offer higher accuracy.
  • Editing scenarios that heavily rely on counts (e.g., 2diw) for repetitive operations, as most text objects in this plugin do not support counts.
  • Workflows dependent on multiline text object support, such as manipulating multi-statement assignments or nested blocks, since most characterwise objects here are limited to single lines.

Pros & Cons

Pros

Extensive Text Object Collection

Bundles over 30 practical text objects, including indentation blocks, subwords, URLs, and key-value pairs, as detailed in the comprehensive README table, reducing the need for manual navigation.

Forward-Seeking Efficiency

Many text objects can seek forward within configurable ranges (small or big), allowing operations like changing the next URL without moving the cursor first, which saves time in editing tasks.

Lightweight and Versatile

Uses pattern-based selections that work across many file types without requiring Treesitter, making it a low-dependency plugin suitable for diverse editing environments, as stated in the philosophy.

Configurable and Extensible

Offers customizable keybindings, behavior settings, and an API for advanced usage, enabling users to create custom commands or adapt text objects to specific needs, as shown in the configuration and advanced sections.

Cons

Pattern-Based Inaccuracy

Relies on pattern matching which can be imprecise in edge cases; the README admits that text objects like 'argument' are less accurate than Treesitter-based versions, leading to potential selection errors.

Limited Multiline Support

Most characterwise text objects do not match multiline objects, such as the 'value' text object not working for multiline assignments, restricting its usefulness in complex code editing.

No Count Support

Counts are not supported for most text objects, a noted limitation that hinders the ability to perform repeated operations with a single command, unlike some native Vim text objects.

Frequently Asked Questions

Quick Stats

Stars769
Forks29
Contributors0
Open Issues0
Last commit3 months ago
CreatedSince 2022

Tags

#code-editing#vim-motions#neovim-plugin#pattern-matching#editor-enhancement#indentation#nvim-plugin#text-objects

Built With

N
Neovim
L
Lua

Included in

Neovim20.6k
Auto-fetched 13 hours ago

Related Projects

nvim-autopairsnvim-autopairs

autopairs for neovim written in lua

Stars4,105
Forks145
Last commit1 month ago
nvim-treesitter-contextnvim-treesitter-context

Show code context

Stars3,242
Forks245
Last commit1 month ago
zen-mode.nvimzen-mode.nvim

🧘 Distraction-free coding for Neovim

Stars2,166
Forks77
Last commit1 year ago
nvim-ts-autotagnvim-ts-autotag

Use treesitter to auto close and auto rename html tag

Stars2,128
Forks112
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub