These are the parameters of my format in .vimrc:
set formatoptions=tqronw
set formatlistpat=^\\([\\-\\*]\\\|[0-9]\\+[.)]\\)\\s*
set textwidth=72
set autoindent
1)
My text:
- This is my text this is my text this is my text this is my text this is my text this is my text.
Result after formatting:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
Expected Result:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
2)
My text:
for Biochemistry, conducted a quality clinical study to determine the effects of microwave cooking on food
Result after formatting:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Expected Result:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Edit
Found a solution for my first question :)
In the text there were (invisible) nbsp (no spaces).
When I replaced normal spaces, formatting was as expected
Reman source
share