Skip to content

Instantly share code, notes, and snippets.

@tarsisazevedo
Created May 1, 2017 22:21
Show Gist options
  • Save tarsisazevedo/2e1ba033454920f38d021aaf020495da to your computer and use it in GitHub Desktop.
Save tarsisazevedo/2e1ba033454920f38d021aaf020495da to your computer and use it in GitHub Desktop.
space tab
" general tab as space conf
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=4 " Indents will have a width of 4
set softtabstop=4 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
" ident by file type
autocmd FileType html,js,ruby setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment