나는 현재 많은 일반 텍스트 (및 단락에서 최소한의 서식을 가진 LaTeX)를 작성하고 있으며 각 문장을 유지하기 위해 vim을 설정할 수 있다면 좋을 것입니다 (간단히 말하면 텍스트는 '.', '!' , 또는 '?'; 즉, 문장 부호로 끝나는 문장 부호 다음에 공백이 붙어서 VCS diff가 더 유용합니다.
최소한 gq
텍스트를 다음 과 같이 형식화 하고 싶습니다 .
He lay flat on the brown, pine-needled floor of the forest, his chin on his
folded arms, and high overhead the wind blew in the tops of the pine trees.
The mountainside sloped gently where he lay; but below it was steep and he
could see the dark of the oiled road winding through the pass. There was a
stream alongside the road and far down the pass he saw a mill beside the
stream and the falling water of the dam, white in the summer sunlight.
에:
He lay flat on the brown, pine-needled floor of the forest, his chin on his folded arms, and high overhead the wind blew in the tops of the pine trees.
The mountainside sloped gently where he lay; but below it was steep and he could see the dark of the oiled road winding through the pass.
There was a stream alongside the road and far down the pass he saw a mill beside the stream and the falling water of the dam, white in the summer sunlight.
그러나 vim이 입력 할 때이 형식을 수행하면 좋을 것입니다 (textwidth reflow와 마찬가지로). 이게 가능해?
내 현재 솔루션은로 단락에 참여한 J
다음 :'<,'>s/\. /.\r/g
느낌표와 물음표가 거의 없기 때문에 실행 하는 것이 좋지만 gq를 조금 더 똑똑하게 만들면 훨씬 좋습니다.