Last active
August 11, 2017 09:13
-
-
Save daiki44/3f11e821e95871f3445a0053c87b996c to your computer and use it in GitHub Desktop.
vimで言語ごとにインデントの大きさを変えてみた ref: http://qiita.com/daiki_44/items/8da9d4f89bb295f1399d
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
" default | |
set tabstop=4 | |
set shiftwidth=4 | |
" filetypeによって設定を変える | |
filetype plugin indent on |
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 filetypedetect | |
" 読み込み時、新規ファイル作成時に、.rb, .erbで終わるファイルだったら、ruby用の設定ファイルを読み込む | |
au BufRead, BufNewFile *.rb *.erb setfiletype ruby | |
augroup END |
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
mkdir ~/.vim/indent |
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
" rails用 | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment