vimrc/sources_non_forked/vim-commentary/doc/commentary.txt

36 lines
1.3 KiB
Text
Raw Normal View History

*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.
2019-11-16 15:28:42 +00:00
Assign b:commentary_startofline to insert comment characters at column 1
regardless of indentation.
2014-04-18 12:58:02 +00:00
*gc*
gc{motion} Comment or uncomment lines that {motion} moves over.
2014-04-18 12:58:02 +00:00
*gcc*
gcc Comment or uncomment [count] lines.
2014-04-18 12:58:02 +00:00
*v_gc*
{Visual}gc Comment or uncomment the highlighted lines.
2014-04-18 12:58:02 +00: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-07-02 11:18:18 +00:00
*: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: