Wrapping text in an opened file in vim

Posted by TK on Super User See other posts from Super User or by TK
Published on 2010-04-12T19:13:50Z Indexed on 2010/04/12 19:23 UTC
Read the original article Hit count: 321

Filed under:
|

I want to soft wrap text in Vim to 90 columns per line. I want soft wrap so that it doesn't affect actual text by adding line break characters.

Here's is what I tried:

// Opened a file with lots of text and ran the following:
set wrap
set tw=90
set linebreak

Running the commands doesn't change anything about the view at all. It soft wraps at the end of the window.

I have used "Soft Wrap" in TextMate by Command-Option-W to get the same effect, and want to know how to get it work on Vim.

© Super User or respective owner

Related posts about vim

Related posts about macvim