Created
March 6, 2013 08:32
-
-
Save ftkro/5097656 to your computer and use it in GitHub Desktop.
My .vimrc.
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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
filetype plugin indent on | |
NeoBundleCheck | |
" カーソル行をハイライト | |
set cursorline | |
" カレントウィンドウにのみ罫線を引く | |
augroup cch | |
autocmd! cch | |
autocmd WinLeave * set nocursorline | |
autocmd WinEnter,BufRead * set cursorline | |
augroup END | |
:hi clear CursorLine | |
:hi CursorLine gui=underline | |
highlight CursorLine ctermbg=black guibg=black | |
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=4 sw=4 sts=0 "タブは半角4文字分のスペース | |
" ファイルを開いた際に、前回終了時の行で起動 | |
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif | |
"####################### | |
" 検索系 | |
"####################### | |
set ignorecase "検索文字列が小文字の場合は大文字小文字を区別なく検索する | |
set smartcase "検索文字列に大文字が含まれている場合は区別して検索する | |
set wrapscan "検索時に最後まで行ったら最初に戻る | |
set noincsearch "検索文字列入力時に順次対象文字列にヒットさせない | |
set nohlsearch "検索結果文字列の非ハイライト表示 | |
let g:neocomplcache_enable_at_startup = 1 | |
let g:neocomplcache_enable_camel_case_completion = 1 | |
let g:neocomplcache_enable_underbar_completion = 1 | |
let g:neocomplcache_smart_case = 1 | |
let g:neocomplcache_min_syntax_length = 3 | |
let g:neocomplcache_manual_completion_start_length = 0 | |
let g:neocomplcache_caching_percent_in_statusline = 1 | |
let g:neocomplcache_enable_skip_completion = 1 | |
let g:neocomplcache_skip_input_time = '0.5' | |
autocmd BufRead *.php\|*.ctp\|*.tpl :set dictionary=~/.vim/dictionaries/php.dict filetype=php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment