I'm not sure why this started to happen but recently vim seems to have begun autowrapping lines when in insert mode. It's pretty annoying.
I use the following modules
'vim-ruby/vim-ruby'
'rodjek/vim-puppet'
'romainl/Apprentice'
'plasticboy/vim-markdown'
I also have the following set
set wildmode=longest,full
set textwidth=80
set autoindent
It pretty much happens in all files so filetype seems to not matter. The full vimrc can be seen here https://pastebin.com/1kpUmXFd
:set tw=0
. But usually Vim will wrap lines depending on the file type you're editing. Can you take a look and share what file type you're editing when this happens? Also post the result of:set ft?
and:set fo?
, since the former can confirm the file type and the latter is involved in the decisions on when to wrap long lines after the'textwidth'
is reached...fo=croql
, then it means only comments will be broken at'textwidth'
. Is it possible that what you're seeing is only happening on lines that have comments? If you remove thec
from that option (:set fo-=c
), then Vim should stop breaking lines attw
when those lines are comments...