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
None of the other answers worked for me (IDK why).
:set wrap!
Did the trick for me (using GVim for Windows).
For preventing vim from wrapping long lines I use these two lines in my .vimrc
:
set nowrap " do not automatically wrap on load
set formatoptions-=t " do not automatically wrap text when typing
Vim may have to be in vi-compatible mode.