This file contains hidden or 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
| #!/bin/bash | |
| SRC=$1 | |
| if [[ ! "$SRC" ]]; then | |
| echo "第1引数にソースコードのファイル名を指定してください." >&2 | |
| exit 1 | |
| fi | |
| if [[ ! -f "$SRC" ]]; then | |
| echo "指定されたファイルが存在しません. : $SRC" >&2 | |
| exit 1 | |
| fi |
This file contains hidden or 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
| " タブをスペースに展開 | |
| set tabstop=2 | |
| set expandtab | |
| set shiftwidth=2 | |
| " 自動インデントを有効にする | |
| set autoindent | |
| set smartindent | |
| " インデントサイズ変更後も範囲選択を保持する |