首页 > 系统服务 > 详细

vim设置文本宽度

时间:2016-06-25 17:46:06      阅读:217      评论:0      收藏:0      [点我收藏+]

‘textwidth‘ ‘tw‘        number  (default 0)
                        local to buffer
                        {not in Vi}
        Maximum width of text that is being inserted.  A longer line will be
        broken after white space to get this width.  A zero value disables
        this.
        ‘textwidth‘ is set to 0 when the ‘paste‘ option is set and restored
        when ‘paste‘ is reset.
        When ‘textwidth‘ is zero, ‘wrapmargin‘ may be used.  See also
        ‘formatoptions‘ and ins-textwidth.
        When ‘formatexpr‘ is set it will be used to break the line.
        NOTE: This option is set to 0 when ‘compatible‘ is set.

例子:
set textwidth=80

set tw=80

vim设置文本宽度

原文:http://www.cnblogs.com/litifeng/p/5616545.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!