Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (22 sloc) 1.17 KB
*commentary.txt* Comment stuff out
Author: Tim Pope <>
License: Same terms as Vim itself (see |license|)
Comment stuff out. Then uncomment it later. Relies on 'commentstring' to be
correctly set, or uses b:commentary_format if it is set.
gc{motion} Comment or uncomment lines that {motion} moves over.
gcc Comment or uncomment [count] lines.
{Visual}gc Comment or uncomment the highlighted lines.
gc Text object for a comment (operator pending mode
*gcgc* *gcu*
gcgc Uncomment the current and adjacent commented lines.
:[range]Commentary Comment or uncomment [range] lines
The |User| CommentaryPost autocommand fires after a successful operation and
can be used for advanced customization.
You can’t perform that action at this time.