Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Griffin Smith glittershark
file 35 lines (24 sloc) 1.295 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
*commentary.txt* Comment stuff out

Author: Tim Pope <http://tpo.pe/>
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.

The gc mappings are preferred, while the \\ mappings are provided for
backwards compatibility.

                                                *gc*
gc{motion} Comment or uncomment lines that {motion} moves over.

                                                *gcc*
gcc Comment or uncomment [count] lines.

                                                *v_gc*
{Visual}gc Comment or uncomment the highlighted lines.

                                                *o_gc*
gc Text object for a comment (operator pending mode
                        only.)

                                                *gcgc* *gcu*
gcgc Uncomment the current and adjacent commented lines.
gcu

                                                *:Commentary*
:[range]Commentary Comment or uncomment [range] lines

The |User| CommentaryPost autocommand fires after a successful operation and
can be used for advanced customization.

 vim:tw=78:et:ft=help:norl:
Something went wrong with that request. Please try again.