Home
last modified time | relevance | path

Searched refs:textwidth (Results 1 – 25 of 85) sorted by relevance

1234

/vim-8.2.3635/src/testdir/
H A Dtest_set.vim32 set textwidth=79
34 call assert_match("^\n--- Options ---\n.*textwidth=79\\>", a)
35 set textwidth&
37 setlocal textwidth=78
39 call assert_match("^\n--- Local option values ---\n.*textwidth=78\\>", a)
40 setlocal textwidth&
42 setglobal textwidth=77
44 call assert_match("^\n--- Global option values ---\n.*textwidth=77\\>", a)
45 setglobal textwidth&
H A Dtest_cjk_linebreak.vim6 set textwidth=12
34 set textwidth=12
58 set textwidth=12 ambiwidth=double
68 set textwidth=12 ambiwidth=double
75 set textwidth=12 ambiwidth=double
H A Dtest_textformat.vim430 setl textwidth=0
951 setlocal textwidth=0
986 setl textwidth=10
996 setl textwidth&
1004 setlocal textwidth=12
1017 setlocal textwidth=10
1029 " 'textwidth'
1032 setlocal textwidth=20
1064 setlocal textwidth=20
1084 setlocal textwidth=20
[all …]
H A Dtest_paste.vim177 set smarttab softtabstop=3 textwidth=27 wrapmargin=12
194 call assert_equal(0, &textwidth)
212 call assert_equal(27, &textwidth)
222 set smarttab& softtabstop& textwidth& wrapmargin&
H A Dtest_help_tagjump.vim132 exec "help! ('textwidth'"
134 call assert_true(getline('.') =~ "\\*'textwidth'\\*")
/vim-8.2.3635/src/
H A Dtextformat.c41 int textwidth, in internal_format() argument
125 coladvance((colnr_T)textwidth); in internal_format()
766 int textwidth; in comp_textwidth() local
776 textwidth -= 1; in comp_textwidth()
783 textwidth -= 1; in comp_textwidth()
786 textwidth -= 8; in comp_textwidth()
788 if (textwidth < 0) in comp_textwidth()
789 textwidth = 0; in comp_textwidth()
793 if (textwidth > 79) in comp_textwidth()
794 textwidth = 79; in comp_textwidth()
[all …]
H A Dedit.c2055 int textwidth; in insertchar() local
2060 textwidth = comp_textwidth(force_format); in insertchar()
2078 if (textwidth > 0 in insertchar()
2086 || Insstart_textlen <= (colnr_T)textwidth) in insertchar()
2088 || Insstart_blank_vcol <= (colnr_T)textwidth in insertchar()
2099 && (force_format || virtcol > (colnr_T)textwidth)) in insertchar()
2108 internal_format(textwidth, second_indent, flags, c == NUL, c); in insertchar()
2207 if (textwidth > 0) in insertchar()
2221 && (textwidth == 0 in insertchar()
2222 || (virtcol += byte2cells(buf[i - 1])) < (colnr_T)textwidth) in insertchar()
H A Dmove.c953 int textwidth; in curs_columns() local
997 textwidth = curwin->w_width - extra; in curs_columns()
998 if (textwidth <= 0) in curs_columns()
1010 width = textwidth + curwin_col_off2(); in curs_columns()
1063 if (p_ss == 0 || diff >= textwidth / 2 || off_right >= off_left) in curs_columns()
1064 new_leftcol = curwin->w_wcol - extra - textwidth / 2; in curs_columns()
/vim-8.2.3635/runtime/pack/dist/opt/justify/plugin/
H A Djustify.vim8 " function Justify( [ textwidth [, maxspaces [, indent] ] ] )
17 " textwidth argument
19 " If not specified, the value of the 'textwidth' option is used. If
20 " 'textwidth' is zero a value of 80 is used.
23 " 'textwidth' will be used. These are handy, if you just want to specify
68 " is wider than the used textwidth, the line will be left untouched (no
72 " If the resulting line is shorter than the used textwidth it is left
147 " Set textwidth (accept 'tw' and '' as arguments)
/vim-8.2.3635/runtime/autoload/
H A Dxmlformat.vim62 " but reformat according to &textwidth
158 " return textwidth (or 80 if not set)
159 return &textwidth == 0 ? 80 : &textwidth
161 " Format input line according to textwidth {{{1
/vim-8.2.3635/runtime/ftplugin/
H A Doccam.vim29 setlocal textwidth=78
44 \ . " formatoptions< comments< textwidth<"
H A Dfortran.vim66 " Set comments and textwidth according to source type
69 " Fixed format requires a textwidth of 72 for code,
84 " Free format allows a textwidth of 132
H A Dhelp.vim16 setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help
H A Dscdoc.vim19 setlocal textwidth=80
H A Drust.vim44 setlocal textwidth=99
153 \|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth<
H A Dmail.vim15 " "jokes" (e.g., setting 'textwidth' to 5).
H A Ddebcontrol.vim20 setlocal textwidth=0
H A Dverilog.vim35 if &textwidth == 0
/vim-8.2.3635/runtime/
H A Dvimrc_example.vim40 " For all text files set 'textwidth' to 78 characters.
41 autocmd FileType text setlocal textwidth=78
/vim-8.2.3635/src/proto/
H A Dtextformat.pro3 void internal_format(int textwidth, int second_indent, int flags, int format_only, int c);
/vim-8.2.3635/runtime/doc/
H A Dchange.txt1274 ('textwidth' and other options affect what is inserted).
1387 (default 'textwidth' or 80 when 'textwidth' is 0).
1391 (default 'textwidth' or 80 when 'textwidth' is 0).
1407 In the third case the 'textwidth' option controls the
1409 If the 'textwidth' option is 0, the formatted line
1665 t Auto-wrap text using textwidth
1667 c Auto-wrap comments using textwidth, inserting the current comment
1719 reaching 'textwidth', Vim does not perform auto-wrapping.
1722 'textwidth' when the insert command started, Vim does not
1737 ] Respect textwidth rigorously. With this flag set, no line can be
[all …]
H A Dusr_25.txt30 If you set the 'textwidth' option, Vim automatically inserts line breaks.
34 :set textwidth=30
141 'textwidth'. (If 'textwidth' is 0, the default is 80.)
393 Set 'textwidth' to zero to avoid a paragraph to be split.
H A Dinsert.txt18 3. 'textwidth' and 'wrapmargin' options |ins-textwidth|
115 'textwidth', 'formatoptions', or 'autoindent' set, this will
153 < Options 'textwidth', 'formatoptions', etc. still apply. If
228 Note that for CTRL-E and CTRL-Y 'textwidth' is not used, to be
475 3. 'textwidth' and 'wrapmargin' options *ins-textwidth*
477 The 'textwidth' option can be used to automatically break a line before it
478 gets too long. Set the 'textwidth' option to the desired maximum line
481 line). If you set 'textwidth' to 0, this feature is disabled.
485 screen. When using 'wrapmargin' this is equal to using 'textwidth' with a
489 When 'textwidth' and 'wrapmargin' are both set, 'textwidth' is used.
[all …]
/vim-8.2.3635/runtime/compiler/
H A Ddecada.vim57 " vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
H A Dgnat.vim75 " vim: textwidth=0 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab

1234