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
To disable line wrap, you can enter
:set wrap!
or append this command to your~/.vimrc
.set formatoptions-=t
should do the trick.set formatoptions+=t
will turn auto-wrapping back on.