Lines Matching refs:tw
22 " Additionally the arguments 'tw' and '' are accepted. The value of
56 " If the values of 'sw' or 'tw' are negative, they are treated as if
91 nmap _j :%call Justify('tw',4)<CR>
92 vmap _j :call Justify('tw',4)<CR>
113 " :%Justify tw 4
134 echo "Justify([tw, [maxspaces [, indent]]]): " . a:message
147 " Set textwidth (accept 'tw' and '' as arguments)
149 if a:1 =~ '^\(tw\)\=$'
150 let tw = &tw
152 let tw = a:1
154 call Justify_error("tw must be a number (>0), '' or 'tw'")
158 let tw = &tw
160 if tw == 0
161 let tw = 80
167 let maxspaces = tw
169 let maxspaces = tw
177 let maxspaces = tw
269 if strdisplaywidth(str) <= tw - indent_n && str_n > 0
271 let s_add = tw - str_n - indent_n - join_n
276 " Test if the changed line fits with tw
277 if 0 <= (str_n + (maxspaces - 1)*s_nr + indent_n) - tw
316 " EOF vim: tw=78 ts=8 sw=4 sts=4 noet ai