VIM TIPS

To set tabstops every 4 spaces and set the shiftwidth (the amount you indent) as 4 spaces also to match tabstops using follwoing:

  1. create file ~/.vimrc, and write
    set ts=4 sw=4

    Save this, in vim your tab will work as same 4 spaces now.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s