2017-10-18 27 views
1

줄 바꿈을하지 않아도되는 문서를 편집하면 Vim (MacVim 8.0은 정확함) 대신에 그 부분을 표시하는 대신 맞는 말하자면, 은 현재 화면에 맞지 않을 정도로 너무 긴 텍스트 줄인 줄을 완전히 숨 깁니다. 라인의 일부가 차지하는 공간은 마치 문자가 보이지 않게 된 것처럼 공백으로 남겨 둡니다.Vim은 너무 길어 완전히 표시 할 수없는 선을 숨 깁니다.

동작을 변경하는 방법이 있습니까?

답변

2

문제를 올바르게 이해하면 :set display=lastline을 설정하면 도움이됩니다.

Change the way text is displayed. This is comma separated list of 
    flags: 
    lastline  When included, as much as possible of the last line 
        in a window will be displayed. "@@@" is put in the 
        last columns of the last screen line to indicate the 
        rest of the line is not displayed. 
    truncate  Like "lastline", but "@@@" is displayed in the first 
        column of the last screen line. Overrules "lastline". 
    uhex   Show unprintable characters hexadecimal as <xx> 
        instead of using ^C and ~C. 

    When neither "lastline" nor "truncate" is included, a last line that 
    doesn't fit is replaced with "@" lines. 

:set nowrap도 시도 할 수 있습니다.

+0

감사합니다.'set display = lastline'으로 해결되었습니다 ('set display = truncate'도 허용됩니다)! 'lastline' 또는'truncate'가 기본값이 아니라는 것이 이상하다는 것을 알았습니다. – BlenderBender