comment leaders while typing comments?
insert comment leaders while typing comments, add the ‘r’ and ‘o’ flags to the ‘formatoptions’ option. :set formatoptions+=ro You may also want to add the ‘c’ flag to auto-wrap comments using the ‘textwidth’ option setting and the ‘q’ flag to format comments with the “gq” command: :set formatoptions=croq For more information, read :help 30.
comment leaders while typing comments?