awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
tpope avatar

tpope/vim-commentary

0
View on GitHub↗
6,161 stars·211 forks·Vim Script·20 viewswww.vim.org/scripts/script.php?script_id=3695↗

Vim Commentary

This project is a Vim commenting plugin and language-aware commenter designed to apply file-type specific comment characters to source code. It functions as a text object extension that allows for the toggling of comment markers on selected lines or blocks of text.

The plugin utilizes Vim motions and ranges to determine the specific text to be modified, automating the process of adding or removing comment markers. It provides multi-language syntax support by automatically mapping comment characters based on the current file type.

Users can define custom comment characters for specific file types to ensure compatibility across different programming languages.

Features

  • Commenting Workflows - Provides an automated workflow for quickly adding or removing comment markers from blocks of code.
  • Comment Syntax Customization - Allows users to define and override custom comment characters based on file type.
  • Motion-Based Selection - Uses standard Vim motions and visual selections to determine which lines of text to modify.
  • Vim Plugins - Integrates with the Vim editor to provide text manipulation capabilities using motions and ranges.
  • Comment Toggling - Functions as a language-aware system for toggling comment markers across various programming languages.
  • Filetype-Aware Syntax Support - Automatically handles different comment characters for various programming languages based on the current file type.
  • Comment Syntax Mappings - Implements mappings that associate specific filetypes with their corresponding comment delimiters.
  • Pattern-Based Comment Removal - Identifies and strips leading comment characters by matching specific text patterns at the start of lines.
  • Regexp-Based Text Injection - Applies comment characters to the start of lines using regular expression substitutions.
  • Text Object Extensions - Extends Vim's text object capabilities to allow manipulating blocks of text based on comment syntax rules.

Star history

Star history chart for tpope/vim-commentaryStar history chart for tpope/vim-commentary

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Vim Commentary

Similar open-source projects, ranked by how many features they share with Vim Commentary.
  • preservim/nerdcommenterpreservim avatar

    preservim/nerdcommenter

    5,004View on GitHub↗

    Nerdcommenter is a Vim commenting plugin and text manipulator designed to automate the insertion, removal, and formatting of language-specific code comments. It serves as a utility for toggling comment markers and aligning comment blocks to improve code organization. The tool provides capabilities for comment state toggling and delimiter switching, allowing users to add or remove markers from single lines or selected blocks of text. It includes features for comment block formatting to ensure visual consistency and the ability to comment out code to disable execution. The plugin covers a broa

    Vim Scriptcommentcommentingvim
    View on GitHub↗5,004
  • numtostr/comment.nvimnumToStr avatar

    numToStr/Comment.nvim

    4,589View on GitHub↗

    Comment.nvim is a Neovim plugin for toggling line and block comments in code. It uses a language-aware syntax resolver to determine the correct comment characters based on the active buffer's filetype and a text-object commenting engine to apply these changes across specific code regions using motions. The plugin features a hook-based action pipeline that executes user-defined pre and post callbacks around core buffer modification operations. It supports Tree-Sitter syntax detection to handle embedded languages within a single file and allows for the definition of custom comment syntax for un

    Luacommentcomment-pluginhacktoberfest
    View on GitHub↗4,589
  • mattn/emmet-vimmattn avatar

    mattn/emmet-vim

    6,463View on GitHub↗

    emmet-vim is a plugin for Vim that functions as a markup automation tool and code expander. It allows for the rapid generation of HTML and CSS structures by expanding shorthand text expressions into full code elements. The tool provides a set of shortcuts for wrapping, balancing, and manipulating tags. It includes a text object extension that enables navigation and editing commands for jumping between nested element boundaries. The project covers a range of capabilities for frontend code refactoring and document hierarchy restructuring. These include tag wrapping, element removal, attribute

    Vim Script
    View on GitHub↗6,463
  • lervag/vimtexlervag avatar

    lervag/vimtex

    6,293View on GitHub↗

    VimTeX is an integrated development environment for authoring and compiling LaTeX documents within Vim and Neovim. It functions as a comprehensive suite for technical document authoring, combining the roles of a syntax highlighter, document navigator, and autocompletion engine. The plugin distinguishes itself through a coordinated workflow that manages asynchronous compilation and bidirectional synchronization with external PDF viewers. This allows users to jump between specific source locations and their rendered pages while maintaining a responsive editor interface during document productio

    TeX
    View on GitHub↗6,293
See all 30 alternatives to Vim Commentary→

Frequently asked questions

What does tpope/vim-commentary do?

This project is a Vim commenting plugin and language-aware commenter designed to apply file-type specific comment characters to source code. It functions as a text object extension that allows for the toggling of comment markers on selected lines or blocks of text.

What are the main features of tpope/vim-commentary?

The main features of tpope/vim-commentary are: Commenting Workflows, Comment Syntax Customization, Motion-Based Selection, Vim Plugins, Comment Toggling, Filetype-Aware Syntax Support, Comment Syntax Mappings, Pattern-Based Comment Removal.

What are some open-source alternatives to tpope/vim-commentary?

Open-source alternatives to tpope/vim-commentary include: preservim/nerdcommenter — Nerdcommenter is a Vim commenting plugin and text manipulator designed to automate the insertion, removal, and… numtostr/comment.nvim — Comment.nvim is a Neovim plugin for toggling line and block comments in code. It uses a language-aware syntax resolver… mattn/emmet-vim — emmet-vim is a plugin for Vim that functions as a markup automation tool and code expander. It allows for the rapid… lervag/vimtex — VimTeX is an integrated development environment for authoring and compiling LaTeX documents within Vim and Neovim. It… airblade/vim-gitgutter — This is a Vim extension that provides Git change visualization and hunk management. It displays markers in the sign… ma6174/vim — This project is a collection of configuration suites and plugin bundles designed to transform the Vim text editor into…