NERD Commenter is a Vim plugin offering powerful and highly customizable commenting capabilities. It simplifies toggling comments, supports multiple styles and nesting, and integrates cleanly with various plugin managers. Several settings can be added to your vimrc to change the default behavior. While the plugin does not directly support motions, you can leverage its support for selections to do something very similar. You can turn off default settings mappings to provide your own from scratch. Comment out the current line or text selected in visual mode.

Features

  • Easy installation via Vim‑Plug, Vundle, NeoBundle, Pathogen, package manager, or manual copy
  • Default key mappings for commenting, toggling, inverting, and formatting lines or regions
  • Support for nested commenting and alternate delimiters per language
  • Options to add spaces after delimiters, trim trailing whitespace, and handle empty lines
  • Fully customizable settings such as g:NERDCreateDefaultMappings, g:NERDSpaceDelims, g:NERDAltDelims_java, and more
  • Licensed under CC0-1.0, making it very permissive and free for modifications

Project Samples

Project Activity

See All Activity >

License

Creative Commons Attribution License

Follow NERD Commenter

NERD Commenter Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of NERD Commenter!

Additional Project Details

Registered

2025-08-07