Why is there no built-in code comment operator?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • vim-commentary

    commentary.vim: comment stuff out

    I can't speak for how OP would do it, but you can generalize single-line commands to multiple lines by visually selecting the lines and then hitting colon (which auto-fills the command to be :'<,'>) and then run :'<,'>norm I// to comment or :'<,'>norm ^xx. See: :h normal-range. Though personally, I just use vim-commentary like many others in this thread.

  • nerdcommenter

    Vim plugin for intensely nerdy commenting powers

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts