linux:vimrc
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| linux:vimrc [2021/03/04 07:08] – 作成 anineco | linux:vimrc [2021/03/08 11:10] (現在) – anineco | ||
|---|---|---|---|
| 行 2: | 行 2: | ||
| [[https:// | [[https:// | ||
| <file vim .vimrc> | <file vim .vimrc> | ||
| + | " vim のデフォールト設定を読み込む。 | ||
| unlet! skip_defaults_vim | unlet! skip_defaults_vim | ||
| source $VIMRUNTIME/ | source $VIMRUNTIME/ | ||
| + | " ステータス行にファイル名、ファイルタイプ、文字コード、改行タイプを表示。 | ||
| set laststatus=2 | set laststatus=2 | ||
| set statusline=%F%m%r%h%w%=%y[%{& | set statusline=%F%m%r%h%w%=%y[%{& | ||
| + | " 全角記号の表示を改善。 | ||
| set ambiwidth=double | set ambiwidth=double | ||
| + | " 検索ワードをハイライトし、ESC+ESCでハイライトを解除。 | ||
| set hlsearch | set hlsearch | ||
| nnoremap < | nnoremap < | ||
| + | " 検索時、大文字小文字は無視するが、すべて大文字は区別。 | ||
| set ignorecase | set ignorecase | ||
| set smartcase | set smartcase | ||
| + | " タブ、特殊な空白、行末の空白を表示。 | ||
| set list | set list | ||
| set listchars=tab: | set listchars=tab: | ||
| + | " 選択範囲をy(ヤンク)でクリップボードにコピー | ||
| + | set clipboard+=unnamed | ||
| + | " TABキーで shiftwidth だけ桁を移動。 | ||
| set softtabstop=-1 | set softtabstop=-1 | ||
| - | autocmd Filetype c setlocal expandtab shiftwidth=4 | + | " 各ファイルタイプ毎のTABの設定 |
| - | autocmd Filetype perl setlocal expandtab shiftwidth=4 | + | autocmd Filetype c setlocal expandtab shiftwidth=2 |
| + | autocmd Filetype cpp setlocal expandtab shiftwidth=2 | ||
| + | autocmd Filetype css setlocal expandtab shiftwidth=2 | ||
| + | autocmd Filetype html | ||
| + | autocmd Filetype javascript setlocal expandtab shiftwidth=2 | ||
| + | autocmd Filetype perl setlocal expandtab shiftwidth=2 | ||
| + | autocmd Filetype sh setlocal expandtab shiftwidth=2 | ||
| </ | </ | ||
| + | |||
linux/vimrc.1614809297.txt.gz · 最終更新: by anineco
