nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

let g:NERDDefaultAlign = 'left' , does not comment at start of line

Open HariSekhon opened this issue 3 years ago • 4 comments

If I've read the docs correctly,

let g:NERDDefaultAlign = 'left'

should result in NerdCommenter adding the comment to the start of the line instead of the indented position just before the first non-whitespace character.

However, testing this it doesn't seem to change the default behaviour and still adds comments indented instead of at the start of the line.

HariSekhon avatar Apr 19 '21 10:04 HariSekhon

it seems that only cs is the only keybinding to activate that sort of commenting format , the aforementioned option didn't work out for me too .

kqvanity avatar Apr 24 '21 06:04 kqvanity

it seems that only cs is the only keybinding to activate that sort of commenting format , the aforementioned option didn't work out for me too .

cs?

HariSekhon avatar Apr 26 '21 13:04 HariSekhon

it seems that only cs is the only keybinding to activate that sort of commenting format , the aforementioned option didn't work out for me too .

cs?

From :h NERDCommenterSexy

3.2.6 Sexy comment map                                     *NERDCommenterSexy*

Default mapping: [count]|<Leader>|cs
Mapped to: <plug>NERDCommenterSexy
Applicable modes: normal, visual-line.

Comments the selected line(s) ``sexily''. See |NERDCommenterSexyComments| for
a description of what sexy comments are. Can only be done on filetypes for
which there is at least one set of multipart comment delimiters specified.

Sexy comments cannot be nested and lines inside a sexy comment cannot be
commented again.

If a [count] is given in normal mode, the mapping works as though that many
lines were selected in visual-line mode.

Related options:
|'NERDCompactSexyComs'|

jorge-precich avatar Jun 18 '21 20:06 jorge-precich