Skip to content

Instantly share code, notes, and snippets.

@ruicovelo
Last active June 6, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruicovelo/9a25caf89e28eeaa7844d18912930ddc to your computer and use it in GitHub Desktop.
Save ruicovelo/9a25caf89e28eeaa7844d18912930ddc to your computer and use it in GitHub Desktop.
My default .vimrc (work in progress)
# defaults
syntax on
filetype plugin indent on
set shiftwidth=2
set softtabstop=2
set tabstop=2
# per filetype
autocmd filetype python setlocal ts=4 sw=4 expandtab smartindent
autocmd filetype ruby setlocal ts=2 sw=2 expandtab smartindent
autocmd filetype html setlocal ts=2 sw=2 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment