Wrapping text in an opened file in vim
- by TK
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.