Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Wrap Text In Neovim

### Softwrap

Softwarp text with this (note, need to checkout why the `linebreak` part is there)

:set wrap linebreak

### Hardwrap On

You can turn on hard wrapping with `tw` set to a specific number. For example:

:set tw=64

That won't do existing lines, just new ones.

### Hardwrap Existing Lines

If you need to convert an existing text, switch to visual line mode with `v`, select the lines to change then use:

gq

### Hardwrap Off

To turn off textwrap, set:

:set tw=0

### Unwrapping Hardwrapped Text

To unwrap text that was hard wrapped, go to the start of the

Read through this for more on softwrapping: https://vim.fandom.com/wiki/Word_wrap_without_line_breaks

via: https://vim.fandom.com/wiki/Automatic_word_wrapping