Created
October 27, 2018 23:48
-
-
Save srockstyle/ac76b566cc35287dc74db1ef25ac802d to your computer and use it in GitHub Desktop.
インデント周り。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"----------------------------------- | |
" インデント設定 | |
"----------------------------------- | |
augroup fileTypeIndent | |
" 言語ごと | |
autocmd! | |
" Python | |
autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 | |
" PHP | |
autocmd BufNewFile,BufRead *.php setlocal tabstop=4 softtabstop=4 shiftwidth=4 | |
" Ruby | |
autocmd BufNewFile,BufRead *.rb setlocal tabstop=2 softtabstop=2 shiftwidth=2 | |
"フレームワークごとの設定 | |
" CakePHP | |
autocmd BufNewFile,BufRead *.ctp setlocal tabstop=4 softtabstop=4 shiftwidth=4 | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment