Skip to content

Instantly share code, notes, and snippets.

@nelsonomuto
Last active November 7, 2017 21:49
Show Gist options
  • Save nelsonomuto/d3192e6c33a646693b952f4c7537e65e to your computer and use it in GitHub Desktop.
Save nelsonomuto/d3192e6c33a646693b952f4c7537e65e to your computer and use it in GitHub Desktop.
html5 vimrc (js, less, scss, sass)
syntax on
" for command mode
" nnoremap <S-Tab> <<
" for insert mode
inoremap <S-Tab> <C-d>
set pastetoggle=<F3>
set expandtab ts=4 sw=4 ai
autocmd Filetype html setlocal ts=2 sw=2 expandtab
autocmd Filetype less setlocal ts=2 sw=2 expandtab
autocmd Filetype scss setlocal ts=2 sw=2 expandtab
autocmd Filetype css setlocal ts=2 sw=2 expandtab
autocmd Filetype ruby setlocal ts=2 sw=2 expandtab
autocmd Filetype javascript setlocal ts=4 sw=4 sts=0 noexpandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment