Answer the question
In order to leave comments, you need to log in
How to prevent vim from splitting lines?
Good day!
I'm learning vim, I ran into this problem: if a line is longer than the specified maximum line width, then vim breaks it and wraps it with a real line break (\n). Those. when this file is opened elsewhere, these wraps are preserved, which is neither expected nor required.
Is it possible to set it up so that the lines are visually wrapped, but there is no real splitting?
Answer the question
In order to leave comments, you need to log in
:set nocompatible
:set nowrap
:set formatoptions-=t
" Или чтобы оставить мягкое/визуальное форматирование
:set textwidth=0 wrapmargin=0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question