Skip to content

Instantly share code, notes, and snippets.

@arnabdas
Created April 14, 2017 13:33
Show Gist options
  • Save arnabdas/d63c8ac03140d3a4da8bee18d2825ce3 to your computer and use it in GitHub Desktop.
Save arnabdas/d63c8ac03140d3a4da8bee18d2825ce3 to your computer and use it in GitHub Desktop.
Insert spaces for tab's in VIM editor
" http://stackoverflow.com/questions/234564/tab-key-4-spaces-and-auto-indent-after-curly-braces-in-vim
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment