[vim ] 請問文寬設定
http://vimdoc.sourceforge.net/htmldoc/vimfaq.html
14.2. How do I format long lines in a file so that each line contains less
than 'n' characters?
First set the 'textwidth' option to the desired value:
set textwidth=70
Now to break the long lines to the length defined by the 'textwidth'
option, use
:g/./normal gqq
照他這麼說 好像是多出70 的字會被截斷到下一行
可是我試過之後好像沒啥反應..
就只是文字被反白的樣子而已...
有人知道怎麼作類似這種把文字自動截斷的動作嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.197.152
→
03/22 01:13, , 1F
03/22 01:13, 1F
→
03/22 01:13, , 2F
03/22 01:13, 2F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):