mirror of
https://github.com/amix/vimrc
synced 2024-12-13 21:52:38 +00:00
31 lines
1 KiB
Text
31 lines
1 KiB
Text
*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.
|
|
\\{motion}
|
|
|
|
*gcc* *\\\*
|
|
gcc Comment or uncomment [count] lines.
|
|
\\\
|
|
|
|
*v_gc* *v_\\*
|
|
{Visual}gc Comment or uncomment the highlighted lines.
|
|
{Visual}\\
|
|
|
|
*gcu* *\\u*
|
|
gcu Uncomment the current and adjacent commented lines.
|
|
\\u
|
|
|
|
The |User| CommentaryPost autocommand fires after a successful operation and
|
|
can be used for advanced customization.
|
|
|
|
vim:tw=78:et:ft=help:norl:
|