作者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