ให้ vim เปลี่ยน tab เป็น space
Jul 25, 2017 · 1 min read
เพิ่ม config นี้เข้าไปใน .vim
set tabstop=2 #จำนวน space
set shiftwidth=2 #ตอน reindent ด้วย << หรือ >>
set expandtab #เปลี่ยน tab เป็น spaceถ้าต้องการเปลี่ยน file เดิมไปตาม settings ใหม่นี้
:retab