awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
tpope avatar

tpope/vim-commentary

0
View on GitHub↗
6,161 星标·211 分支·Vim Script·11 次浏览www.vim.org/scripts/script.php?script_id=3695↗

Vim Commentary

该项目是一个 Vim 注释插件和语言感知注释器,旨在将特定于文件类型的注释字符应用于源代码。它充当文本对象扩展,允许切换选定行或文本块上的注释标记。

该插件利用 Vim 动作和范围来确定要修改的特定文本,从而自动化添加或移除注释标记的过程。它通过根据当前文件类型自动映射注释字符来提供多语言语法支持。

用户可以为特定文件类型定义自定义注释字符,以确保跨不同编程语言的兼容性。

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 历史

tpope/vim-commentary 的 Star 历史图表tpope/vim-commentary 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Vim Commentary 的开源替代方案

相似的开源项目,按与 Vim Commentary 的功能重合度排序。
  • preservim/nerdcommenterpreservim 的头像

    preservim/nerdcommenter

    5,004在 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
    在 GitHub 上查看↗5,004
  • numtostr/comment.nvimnumToStr 的头像

    numToStr/Comment.nvim

    4,589在 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
    在 GitHub 上查看↗4,589
  • mattn/emmet-vimmattn 的头像

    mattn/emmet-vim

    6,463在 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
    在 GitHub 上查看↗6,463
  • lervag/vimtexlervag 的头像

    lervag/vimtex

    6,293在 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
    在 GitHub 上查看↗6,293
查看 Vim Commentary 的所有 30 个替代方案→

常见问题解答

tpope/vim-commentary 是做什么的?

该项目是一个 Vim 注释插件和语言感知注释器,旨在将特定于文件类型的注释字符应用于源代码。它充当文本对象扩展,允许切换选定行或文本块上的注释标记。

tpope/vim-commentary 的主要功能有哪些?

tpope/vim-commentary 的主要功能包括:Commenting Workflows, Comment Syntax Customization, Motion-Based Selection, Vim Plugins, Comment Toggling, Filetype-Aware Syntax Support, Comment Syntax Mappings, Pattern-Based Comment Removal。

tpope/vim-commentary 有哪些开源替代品?

tpope/vim-commentary 的开源替代品包括: 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…