Ce sont mes options de format dans Vimrc:Comment puis-je formater comme indiqué ci-dessous?
set formatoptions=tqronw
set formatlistpat=^\\([\\-\\*]\\\|[0-9]\\+[.)]\\)\\s*
set textwidth=72
set autoindent
1)
Mon texte:
- This is my text this is my text this is my text this is my text this is my text this is my text.
Sortie après le formatage:
- This is my text this is my text this is my text this is my text this is my
text this is my text.
Résultats attendus:
- 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)
Mon texte:
for Biochemistry, conducted a quality clinical study to determine the effects of microwave cooking on food
Sortie après le formatage:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Sortie prévue:
for Biochemistry, conducted a quality clinical study to determine the
effects of microwave cooking on food
Editer
J'ai trouvé la solution pour ma première question :)
Il y avait des nbsp (pas de visibilité) dans le texte.
Quand j'ai fait un remplacement avec normal-spaces la mise en forme était comme prévu
Pour créer des espaces insécables peuvent être distinguées avec des espaces normaux utilisent 'liste figurant = lcs onglet: \ \, nbsp: _' (il est également logique d'utiliser autre chose alors' onglet: \ \ 'ici pour voir les onglets aussi bien). Aucune des options ne mettra en évidence aucun des nombreux autres espaces Unicode qui ont une largeur différente, mais tous auront probablement le même effet qu'un espace insécable. – ZyX