by nazri1 · 8y ago · 0 comments
command Tab1 set ts=1 sts=1 sw=1
command Tab2 set ts=2 sts=2 sw=2
command Tab4 set ts=4 sts=4 sw=4
command Tab8 set ts=8 sts=8 sw=8 command! Tab1 set ts=1 sts=1 sw=1
command! Tab2 set ts=2 sts=2 sw=2
command! Tab4 set ts=4 sts=4 sw=4
command! Tab8 set ts=8 sts=8 sw=8
The ! exclamation mark is there to prevent vim from complaining about a duplicate command already existing whenever you reload your vimrc.