Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
usa.yimian.xyz committed Aug 19, 2020
1 parent c2ca9bc commit 2df299b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vimrc
Expand Up @@ -66,6 +66,11 @@ filetype on
filetype plugin on
filetype indent on


"yaml config
au! BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

autocmd FileType python set tabstop=4 shiftwidth=4 expandtab ai
autocmd FileType ruby set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai
autocmd BufRead,BufNew *.md,*.mkd,*.markdown set filetype=markdown.mkd

0 comments on commit 2df299b

Please sign in to comment.