Eu insiro este texto no 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.
então eu seleciono visualmente todas essas linhas e pressione gq. O conteúdo se torna:
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.
Por favor, explique-me por que existe esse espaço em branco no início das últimas quatro linhas. É possível que a primeira palavra ( for) na quinta linha, que em algumas linguagens de programação inicie um forloop, faça o Vim pensar que deve iniciar um novo bloco de código recuado, mesmo que essas linhas estejam em um arquivo não salvo ou em um arquivo Markdown ? Como posso evitar esse comportamento e gqparar de inserir esse espaço em branco?
Minha commentsconfiguração tem o valor padrão: s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-. Você pode ver meu .vimrcarquivo aqui .
Atualização: Minha opção fo( formatoptions) tem o valor tcq, as opções formatexpre formatprgestão vazias.
:-)Eu atualizei a pergunta.