2014-03-02 09:35:00 -05:00
|
|
|
*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
|
2014-03-11 16:10:50 -04:00
|
|
|
correctly set, or uses b:commentary_format if it is set.
|
2014-03-02 09:35:00 -05:00
|
|
|
|
2019-11-16 10:28:42 -05:00
|
|
|
Assign b:commentary_startofline to insert comment characters at column 1
|
|
|
|
regardless of indentation.
|
|
|
|
|
2014-04-18 08:58:02 -04:00
|
|
|
*gc*
|
2014-03-02 09:35:00 -05:00
|
|
|
gc{motion} Comment or uncomment lines that {motion} moves over.
|
|
|
|
|
2014-04-18 08:58:02 -04:00
|
|
|
*gcc*
|
2014-03-02 09:35:00 -05:00
|
|
|
gcc Comment or uncomment [count] lines.
|
|
|
|
|
2014-04-18 08:58:02 -04:00
|
|
|
*v_gc*
|
2014-03-02 09:35:00 -05:00
|
|
|
{Visual}gc Comment or uncomment the highlighted lines.
|
|
|
|
|
2014-04-18 08:58:02 -04:00
|
|
|
*o_gc*
|
|
|
|
gc Text object for a comment (operator pending mode
|
|
|
|
only.)
|
|
|
|
|
|
|
|
*gcgc* *gcu*
|
|
|
|
gcgc Uncomment the current and adjacent commented lines.
|
|
|
|
gcu
|
2014-03-02 09:35:00 -05:00
|
|
|
|
2014-07-02 07:18:18 -04:00
|
|
|
*:Commentary*
|
|
|
|
:[range]Commentary Comment or uncomment [range] lines
|
|
|
|
|
2014-03-11 16:10:50 -04:00
|
|
|
The |User| CommentaryPost autocommand fires after a successful operation and
|
|
|
|
can be used for advanced customization.
|
|
|
|
|
2014-03-02 09:35:00 -05:00
|
|
|
vim:tw=78:et:ft=help:norl:
|