답변:
'textwidth' 'tw' number (default 0)
local to buffer
{not in Vi}
Maximum width of text that is being inserted. A longer line will be
broken after white space to get this width. A zero value disables
this. 'textwidth' is set to 0 when the 'paste' option is set. When
'textwidth' is zero, 'wrapmargin' may be used. See also
'formatoptions' and |ins-textwidth|.
When 'formatexpr' is set it will be used to break the line.
NOTE: This option is set to 0 when 'compatible' is set.
'wrapmargin' 'wm' number (default 0)
local to buffer
Number of characters from the right window border where wrapping
starts. When typing text beyond this limit, an <EOL> will be inserted
and inserting continues on the next line.
Options that add a margin, such as 'number' and 'foldcolumn', cause
the text width to be further reduced. This is Vi compatible.
When 'textwidth' is non-zero, this option is not used.
See also 'formatoptions' and |ins-textwidth|. {Vi: works differently
and less usefully}
긴 줄 자동 줄 바꿈을 참조하면 다음 줄로 보내십시오.
:set textwidth=0
:set wrapmargin=0
gq하면 단락을 텍스트 너비에 수동으로 재정렬하는 데 사용할 수 없습니다 . @Engineero가 올바른 것이어야합니다.
다른 답변 중 어느 것도 나를 위해 일하지 않았습니다 (IDK 이유).
:set wrap! 나를 위해 트릭을 수행했습니다 (Windows 용 GVim 사용).
wrap줄 바꿈 모양을 제공하지만 실제로 텍스트를 새 줄로 나누지 는 않습니다 . wrap활성화 했을 가능성이 있으므로 비활성화 :set wrap!했습니다. :set wrap?현재 값 (예 : wrap또는 nowrap)을 에코 할 것인지 확인할 수 있습니다 .
textwidth하고 wrapmargin처음 그러나 이것은 실제로 포장 선없이 갱신하고 다시 쓰게 정력을 강요했다.
:set nowrap줄 바꿈을 삽입하지 않고 줄 표시를 줄 바꿈하는 것만 방지합니다.