Skip to content

Instantly share code, notes, and snippets.

@TatsuyaOGth
Created January 6, 2015 16:25
Show Gist options
  • Select an option

  • Save TatsuyaOGth/f7e9bc375676f39047a6 to your computer and use it in GitHub Desktop.

Select an option

Save TatsuyaOGth/f7e9bc375676f39047a6 to your computer and use it in GitHub Desktop.
my vimrc
" reference: http://d.hatena.ne.jp/mtbtaizo/20080622
"# set nocompatible "vi非互換モード
"#######################
" 表示系
"#######################
set number "行番号表示
set showmode "モード表示
set title "編集中のファイル名を表示
set ruler "ルーラーの表示
set showcmd "入力中のコマンドをステータスに表示する
set showmatch "括弧入力時の対応する括弧を表示
set laststatus=2 "ステータスラインを常に表示
"#######################
" プログラミングヘルプ系
"#######################
syntax on "カラー表示
set smartindent "オートインデント
" tab関連
"set expandtab "タブの代わりに空白文字挿入
set ts=2 sw=2 sts=0 "タブは半角4文字分のスペース
" ファイルを開いた際に、前回終了時の行で起動
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif
"#######################
" 検索系
"#######################
set ignorecase "検索文字列が小文字の場合は大文字小文字を区別なく検索する
set smartcase "検索文字列に大文字が含まれている場合は区別して検索する
set wrapscan "検索時に最後まで行ったら最初に戻る
set noincsearch "検索文字列入力時に順次対象文字列にヒットさせない
set nohlsearch "検索結果文字列の非ハイライト表示
"-----------------------
" Theme
"-----------------------
"syntax enable
"set background=light
"colorscheme solarized
"let g:solarized_termcolors=256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment