Saya memasukkan teks ini ke 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.
maka saya secara visual memilih semua baris ini dan tekan gq
. Isi menjadi:
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.
Tolong jelaskan kepada saya mengapa ada spasi putih di awal empat baris terakhir. Mungkinkah kata pertama ( for
) pada baris kelima, yang dalam beberapa bahasa pemrograman memulai satu for
loop, membuat Vim berpikir itu harus memulai blok kode indentasi baru, bahkan jika baris ini berada dalam file yang belum disimpan atau dalam file penurunan harga ? Bagaimana saya bisa menghindari perilaku ini dan membuat gq
berhenti memasukkan spasi putih itu?
Saya comments
pengaturan memiliki nilai default: s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
. Anda dapat melihat .vimrc
file saya di sini .
Pembaruan: Opsi fo
( formatoptions
) saya memiliki nilai tcq
, formatexpr
dan formatprg
opsi kosong.
:-)
Saya memperbarui pertanyaan.