Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yml/dotfiles into languag…
Browse files Browse the repository at this point in the history
…e-server-autocompletion
  • Loading branch information
yml committed Mar 5, 2018
2 parents b8cbbe6 + 5894108 commit 7016ba6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _vimrc
Expand Up @@ -345,7 +345,7 @@ augroup END
" vim-javascript
augroup vimrc-javascript
autocmd!
autocmd FileType javascript setlocal tabstop=4 shiftwidth=2 expandtab softtabstop=2 smartindent
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab softtabstop=4
augroup END

" vim-html
Expand All @@ -362,7 +362,7 @@ let g:html_indent_inctags = 'html,body,head,tbody,p,li,dd,dt,h1,h2,h3,h4,h5,h6,b
augroup vimrc-python
autocmd!
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8 colorcolumn=79
autocmd FileType python setlocal formatoptions+=croq softtabstop=4 smartindent
autocmd FileType python setlocal formatoptions+=croq softtabstop=4
autocmd FileType python setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class,with
augroup END

Expand All @@ -387,6 +387,14 @@ augroup vimrc-make-cmake
autocmd BufNewFile,BufRead CMakeLists.txt setlocal filetype=cmake
augroup END

" htmldjango
augroup virmc-htmldjango
autocmd!
autocmd FileType htmldjango setlocal tabstop=2 shiftwidth=2 expandtab softtabstop=2
autocmd FileType htmldjango :iabbrev <buffer> {% {% %}<left><left><left>
autocmd FileType htmldjango :iabbrev <buffer> {{ {{ }}<left><left><left>
augroup END

" Set the filetype to yaml for salt's `.sls` extension
au BufRead,BufNewFile *.sls set filetype=yaml

Expand Down

0 comments on commit 7016ba6

Please sign in to comment.