Vim: Soft wrap width option

Created on 17 Jul 2017  路  1Comment  路  Source: vim/vim

When using the "wrap" option, it would be convenient to be able to specify a width (comparable to the textwidth option for hard line wrapping) rather than tying the soft wrap to the window width.

Most helpful comment

There is quite a bit of demand for this, actually.

Over at neovim: https://github.com/neovim/neovim/issues/4386
On stackoverflow: https://stackoverflow.com/questions/989093/soft-wrap-at-80-characters-in-vim-in-window-of-arbitrary-width

I also came here after searching for a solution, and there just doesn't seem to be one, really.
My use case is writing latex (i.e. text, not code) using the terminal in i3wm.
I use multiple windows within vim, but each is usually >>80 chars wide, which makes text unnecessarily hard to write and navigate. Since the terminal usually fills all the screen (as in any tiling window manager) resizing the terminal is a bit uncomfortable.

>All comments

There is quite a bit of demand for this, actually.

Over at neovim: https://github.com/neovim/neovim/issues/4386
On stackoverflow: https://stackoverflow.com/questions/989093/soft-wrap-at-80-characters-in-vim-in-window-of-arbitrary-width

I also came here after searching for a solution, and there just doesn't seem to be one, really.
My use case is writing latex (i.e. text, not code) using the terminal in i3wm.
I use multiple windows within vim, but each is usually >>80 chars wide, which makes text unnecessarily hard to write and navigate. Since the terminal usually fills all the screen (as in any tiling window manager) resizing the terminal is a bit uncomfortable.

Was this page helpful?
0 / 5 - 0 ratings