作者verysamuel (elegant)
看板Editor
標題[vim ] 請問文寬設定
時間Sun Mar 21 20:05:27 2010
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
1F:→ oversky0:Format current paragraph under cursor 03/22 01:13
2F:→ oversky0:{v}gq 03/22 01:13