Estos son mis opciones de formato en .vimrc:¿Cómo puedo formatear como se indica a continuación?
set formatoptions=tqronw
set formatlistpat=^\\([\\-\\*]\\\|[0-9]\\+[.)]\\)\\s*
set textwidth=72
set autoindent
1)
Mi texto:
- This is my text this is my text this is my text this is my text this is my text this is my text.
de salida después de formatear:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
Resultados previstos:
- 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)
Mi texto:
for Biochemistry, conducted a quality clinical study to determine the effects of microwave cooking on food
de salida después de formatear:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Resultados previstos:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Editar
encontrado la solución para mi primera pregunta :)
Había (sin espacios) de ruptura (no visible) de nbsp en el texto.
Cuando hice un sustituto con espacios-normales, el formateo fue el esperado
crear espacios de no separación poder distinguirse con espacios normales usar 'lista del LCS = pestaña: \ \, nbsp: _' (que también tiene sentido utilizar algo que no sea pestaña': \ \ 'aquí para ver pestañas también). Ninguna de las opciones resaltará ninguno de los muchos espacios Unicode que tienen ancho diferente, pero todos tienen el mismo efecto que un espacio sin interrupción. – ZyX