码迷,mamicode.com
首页 > 系统相关 > 详细

vim设置文本宽度

时间:2016-06-25 17:47:13      阅读:189      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!