💻 Software
How do I select the comment block under the cursor in vim?
Fresh5 days ago
Mar 15, 20261686 viewsConfidence Score0%
0%
Problem
I’d like to select (or delete, or change, or …) the whole block of commentary under my cursor. If my cursor is at the beginning of the commentary block (i.e. over the opening comment character), and it’s a type of comment block with discrete start/end markers, then I can select the entire comment b…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I select the comment block under the cursor in vim?
Low Risk
Assuming you're working with C++ block comments, these commands should do what you want: These will: The first will jump to the start of a block comment (the slash in /*) The second will turn on select mode The third will jump to the end of a block …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix