Lines Matching refs:str
242 let str = getline(cur)
251 let indent_n = strlen(matchstr(str, '^\s*'))
256 let str = substitute(str, '\s\+$', '', '')
257 let str = substitute(str, '^\s\+', '', '')
258 let str = substitute(str, '\s\+', ' ', 'g')
259 let str_n = strdisplaywidth(str)
263 let str = substitute(str, join_str, '\1 ', 'g')
265 let join_n = strdisplaywidth(str) - str_n
268 " Note that str_n may be less than strlen(str) [joinspaces above]
269 if strdisplaywidth(str) <= tw - indent_n && str_n > 0
272 let s_nr = strlen(substitute(str, '\S', '', 'g') ) - join_n
281 let str = substitute(str, '\( \+\)', ' \1', 'g')
287 let str = substitute(str, '\(\(\s\+\S\+\)\{' . s_mod . '}\)$', ' \1', '')
293 let str = substitute(str, '^', indent_str, '' )
297 call setline(cur, str)