The comment auto-insert feature is often very helpful and otherwise very annoying, depending on the kind of comment I am writing. Is it possible to bind the auto-insertion of
// exclusively to
<shift+enter>, and skip the auto-comment for ordinary
<enter>? I thought about binding a key to some kind of temporary
setlocal, but it seems too complicated since
setlocal is meant for local scope (obviously) and not for immediate modifiers.
This earlier question is similar but really not the same: Remove automatic comment leader
inoremap <S-Enter> <C-\><C-O>:setl fo+=r<CR><CR><C-\><C-O>:setl fo-=r<CR>
C-yor any other control combo, but
<S-Enter>seems not to be mappable. Any suggestion why not?