A bit of context: I'm trying to use NeoVim after Spacemacs. In Spacemacs, there is gql
key combination that hard wraps current long line of text into multiple short lines. It is useful if I want to write a long documentation comment. So I write a single line and let the IDE figure out linebreaks.
When I'm trying to configure NeoVim to wrap lines. And I want to achieve the following behaviour:
- Don't wrap lines automatically when reaching a specific limit (like 80 columns).
- Wrap line (ideally preserving indentation) with some hotkey like
gql
.
I tried :set tw=80
and I can wrap lines by gqq
, but they are also wrapped automatically...
How can I configure my NeoVim environment to do this?