8
vim에서는 textwidth 옵션을 설정하고 새로운 텍스트의 서식을 지정하여 바꿀 수 있습니다. "gq"명령을 사용하여 명시 적으로 텍스트를 줄 바꿈 할 수도 있습니다. 그러나 글 머리 기호 목록의 동작은 예상치 못한 문제입니다. vim 문서에서는 글 머리 기호에 하이픈이있는 글 머리 기호 목록을 사용하는 방법에 대해 설명합니다. 나는이 작업을 수행 할 때, 괜찮 시작합니다정확한 들여 쓰기로 글 머리표 목록을 포맷하는 방법 vim에서
formatoptions=tcq
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
:
- This is a bulleted list item that
has been wrapped over more than
two lines. The indentation for lines
after the second is unexpected.
이 함께 발생합니다
- This is a bulleted list item that
has been wrapped. It looks good.
을하지만, 나는 세 번째 줄에 계속하면, 그것은 들여 쓰기 포기
그냥 명확하게하기 위해, 나는 이런 식으로 들여 쓰기를 좋아하는 것 :
- This is a bulleted list item that
has been wrapped over more than
two lines. I want every line after
the first to get the same indent.