0

I thought that with formatoptions-=c, vim wont automatically format comments, but for some reason with setlocal formatoptions=ant and textwidth=80, neovim is still hard wrapping markdown comments (<!-- -->).

1
  • That's textwidth breaking the lines. formatoptions can only do so much about it. See :help ins-textwidth
    – D. Ben Knoble
    Jul 13 '21 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.