看板 Editor 關於我們 聯絡資訊
我自己習慣的用法是 'V' 選擇要截斷的行。 (j/k) gq 就會生效 ※ 引述《verysamuel (elegant)》之銘言: : 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 的字會被截斷到下一行 : 可是我試過之後好像沒啥反應.. : 就只是文字被反白的樣子而已... : 有人知道怎麼作類似這種把文字自動截斷的動作嗎? -- qr{Cornelius|c9s}; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 113.61.198.68