Neovim: Add a soft wrap width option

Created on 3 Dec 2015  路  3Comments  路  Source: neovim/neovim

Currently vim soft wraps lines at the width of the screen. I would like to have an option to specify a column width where should be wrapped so my full screen terminal is not filled with text.

enhancement

Most helpful comment

No, that way it will hard wrap, adding a new line charactar, at that point. I want a width at which a long line will continue on the following line in vim, but without adding a new line.

The only thing I can find that is related is this https://stackoverflow.com/questions/989093/soft-wrap-at-80-characters-in-vim-in-window-of-arbitrary-width
However, this resizes the terminal, which is not what I want. I want it to display an empty terminal on the rest of the screen.

All 3 comments

Like :h 'textwidth'? (Also have a look at :h 'linebreak'.)

No, that way it will hard wrap, adding a new line charactar, at that point. I want a width at which a long line will continue on the following line in vim, but without adding a new line.

The only thing I can find that is related is this https://stackoverflow.com/questions/989093/soft-wrap-at-80-characters-in-vim-in-window-of-arbitrary-width
However, this resizes the terminal, which is not what I want. I want it to display an empty terminal on the rest of the screen.

Just create a new vertical window, or use something like goyo.vim.

https://github.com/junegunn/goyo.vim

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nhooyr picture nhooyr  路  3Comments

davidgranstrom picture davidgranstrom  路  3Comments

Dark-Passenger picture Dark-Passenger  路  3Comments

amiryal picture amiryal  路  3Comments

hauleth picture hauleth  路  3Comments