Hacker News new | ask | show | jobs
by nazri1 2897 days ago
Go one step further and add these to you vimrc:

    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
1 comments

slight addition:

    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.