I know there must be something obvious I'm missing, but I can't stop vim from wrapping my python code. I enter :set nowrap
like a champ, but still it 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.
相关问题
- Emacs shell: save commit message
- How to change the first two uppercase characters o
- Insert text into current buffer from function
- Hot reload on save
- Substituting zero-width match in vim script
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- Auto-save in VIM as you type
- How can I use gcc's -I command to add recursiv
- Vim: overloaded mapping for multiple modes
- How to use relative line numbering universally in
- How to copy the value of a vim option to a registe
- E185: Cannot find color scheme*
- How do I fix vim to properly indent folds containi
None of the other answers worked for me (IDK why).
:set wrap!
Did the trick for me (using GVim for Windows).Open vimrc_example.vim (Yes, this is the file in Vim74) and set textwidth=0.
Maybe it's the textwidth that's set, which automatically breaks lines when it reaches a certain length Try
If that fails play with e.g.
and
If you refer to auto wrapping of long lines sending them to the next one, try
For preventing vim from wrapping long lines I use these two lines in my
.vimrc
:Vim may have to be in vi-compatible mode.