Inserisco questo testo in Vim:
t tttt ttttttttt tt tttt tt ttt tttttt-tttt-ttttttt
tttttttttttttttttttttttttttttttttttttttttttttttttttttt ttttt ttt ttt tttttt
ttttttt tttt ttttttt: ttttttt tt ttttttt, ttttttt tt tttttt, tttttt tt ttttttt,
tttttt tt tttttt ttt. t tttttt tt ttt (tttt) ttttttt-tttttt-tt-ttttttt tttttt
for the "tttttt in ttttttt" part of the issue (in the previous week I have
worked on the "objects in objects" part). This part is about making it
possible for the end user to add arrays in objects. First of all I checked
that the current implementation allows putting arrays in objects at least
from the schema passed to the plugin constructor.
quindi seleziono visivamente tutte queste righe e premo gq
. I contenuti diventano:
t tttt ttttttttt tt tttt tt ttt tttttt-tttt-ttttttt
tttttttttttttttttttttttttttttttttttttttttttttttttttttt ttttt ttt ttt tttttt
ttttttt tttt ttttttt: ttttttt tt ttttttt, ttttttt tt tttttt, tttttt tt ttttttt,
tttttt tt tttttt ttt. t tttttt tt ttt (tttt) ttttttt-tttttt-tt-ttttttt tttttt
for the "tttttt in ttttttt" part of the issue (in the previous week I have
worked on the "objects in objects" part). This part is about making it
possible for the end user to add arrays in objects. First of all I checked
that the current implementation allows putting arrays in objects at least
from the schema passed to the plugin constructor.
Per favore, spiegami perché c'è quello spazio bianco all'inizio delle ultime quattro righe. È possibile che la prima parola ( for
) sulla quinta riga, che in alcuni linguaggi di programmazione avvii un for
ciclo, faccia pensare a Vim che dovrebbe iniziare un nuovo blocco di codice rientrato, anche se queste righe si trovano in un file non salvato o in un file Markdown ? Come posso evitare questo comportamento e gq
smettere di inserire quello spazio bianco?
La mia comments
impostazione ha il valore di default: s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
. Puoi vedere il mio .vimrc
file qui .
Aggiornamento: l' opzione My fo
( formatoptions
) ha il valore tcq
, le opzioni formatexpr
e formatprg
sono vuote.
:-)
Ho aggiornato la domanda.