作者kornelius (c9s)
看板Editor
标题Re: [vim ] 请问文宽设定
时间Sun Mar 21 22:52:48 2010
我自己习惯的用法是
'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