samer@3: *commentary.txt* Comment stuff out samer@3: samer@3: Author: Tim Pope samer@3: License: Same terms as Vim itself (see |license|) samer@3: samer@3: Comment stuff out. Then uncomment it later. Relies on 'commentstring' to be samer@3: correctly set, or uses b:commentary_format if it is set. samer@3: samer@3: The gc mappings are preferred, while the \\ mappings are provided for samer@3: backwards compatibility. samer@3: samer@3: *gc* samer@3: gc{motion} Comment or uncomment lines that {motion} moves over. samer@3: samer@3: *gcc* samer@3: gcc Comment or uncomment [count] lines. samer@3: samer@3: *v_gc* samer@3: {Visual}gc Comment or uncomment the highlighted lines. samer@3: samer@3: *o_gc* samer@3: gc Text object for a comment (operator pending mode samer@3: only.) samer@3: samer@3: *gcgc* *gcu* samer@3: gcgc Uncomment the current and adjacent commented lines. samer@3: gcu samer@3: samer@3: *:Commentary* samer@3: :[range]Commentary Comment or uncomment [range] lines samer@3: samer@3: The |User| CommentaryPost autocommand fires after a successful operation and samer@3: can be used for advanced customization. samer@3: samer@3: vim:tw=78:et:ft=help:norl: