Sexual Comment Mode C
By default, line ranges only work with visual highlighting + <leader>cc tested on 2.5.2, as mentioned at: https://stackoverflow.com/a/2126258/
But first of all, I want to highlight "sexy mode" comments in this answer with <leader>cs , which generate nice multi-line comments in C.
For example, if you start with:
This is ac style sexy comment So there!
then <leader>cs from the visual selection will convert it to:
And you can also switch to non-compact mode by adding to your .vimrc :
let g:NERDCompactSexyComs = 0
which works as follows:
------------------------------------------------------------------------------ *'NERDCompactSexyComs'* Values: 0 or 1. Default 0. Some people may want their sexy comments to be like this: > < As opposed to like this: >
Another related format that may be of interest is the "Minimal Comment Map", available with <leader>cm which produces:
I could not find my favorite style, unfortunately:
so I opened: https://github.com/scrooloose/nerdcommenter/issues/379
Ciro Santilli ζ°η ζΉι δΈεΏ 996ICU ε
ε δΊδ»Ά Jun 09 '19 at 12:38 on 2019-06-09 12:38
source share