Why can't I stop vim from wrapping my code?

Viewed 100490

I can't stop vim from wrapping my Python code. If I enter :set nowrap like a champ, but it still wraps.

I can hit J to unite the split lines of code, so it seems like a real carriage return is being inserted. I just don't understand why or how to stop it.

9 Answers

On macbook pro I outcommented in .vimrc the line

autocmd FileType text setlocal textwidth=78

so it became

"  autocmd FileType text setlocal textwidth=78

.

(I installed a version of vim via homebrew.) This helped for all .txt files.

Related