Last active
December 8, 2016 12:57
-
-
Save takaya030/7b6e27318ba48eb9e436 to your computer and use it in GitHub Desktop.
My vimrc
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
" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照) | |
" | |
" An example for a Japanese version vimrc file. | |
" 日本語版のデフォルト設定ファイル(vimrc) - Vim7用試作 | |
" | |
" Last Change: 19-Nov-2015. | |
" Maintainer: MURAOKA Taro <[email protected]> | |
" | |
" 参考: | |
" :help vimrc | |
" :echo $HOME | |
" :echo $VIM | |
" :version | |
"--------------------------------------------------------------------------- | |
" システム設定 | |
source $VIM/vimrc | |
if has("win32") || has("win64") | |
set directory=$TMP | |
else | |
set directory=~/tmp | |
end | |
"--------------------------------------------------------------------------- | |
" 独自の設定 | |
" タブの画面上での幅 | |
set tabstop=4 shiftwidth=4 softtabstop=0 | |
" 行番号を表示 (nonumber:表示) | |
set number | |
" 挿入モードで、直前の単語を大文字に変換 | |
":map! <C-F> <Esc>gUiw`]a | |
" 挿入モードを抜けるときに、IMEをOFF | |
inoremap <silent> <ESC> <ESC>:set iminsert=0<CR> | |
" 挿入モードのカーソル左右移動 | |
inoremap <C-F> <Right> | |
inoremap <C-B> <Left> | |
" コマンドラインモードのカーソル左右移動 | |
cnoremap <C-F> <Right> | |
cnoremap <C-B> <Left> | |
" ステータスラインのカスタマイズ | |
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P | |
" fold | |
set foldmethod=marker | |
" 自動セープON | |
set autowrite | |
" undoファイルを作成しない | |
set noundofile | |
"--------------------------------------------------------------------------- | |
" PHP Lint | |
nmap ,l :call PHPLint()<CR> | |
" " | |
" PHPLint | |
" | |
" @author halt feits <halt.feits at gmail.com> | |
" | |
function PHPLint() | |
let result = system( &ft . ' -l ' . bufname("")) | |
echo result | |
endfunction | |
"--------------------------------------------------------------------------- | |
" NeoBundle | |
" vim起動時のみruntimepathにneobundle.vimを追加 | |
if has('vim_starting') | |
set nocompatible | |
set runtimepath+=$HOME/vimfiles/bundle/neobundle.vim | |
endif | |
" neobundle.vimの初期化 | |
" NeoBundleを更新するための設定 | |
call neobundle#begin(expand($HOME.'/vimfiles/bundle')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" 読み込むプラグインを記載 | |
"NeoBundle 'Shougo/unite.vim' | |
"NeoBundle 'itchyny/lightline.vim' | |
NeoBundle 'flyinshadow/php_localvarcheck.vim' | |
NeoBundle 'tpope/vim-fugitive' | |
call neobundle#end() | |
" 読み込んだプラグインも含め、ファイルタイプの検出、ファイルタイプ別プラグイン/インデントを有効化する | |
filetype plugin indent on | |
" インストールのチェック | |
NeoBundleCheck | |
" php_localvarcheck | |
let g:php_localvarcheck_enable = 1 | |
let g:php_localvarcheck_global = 0 | |
"--------------------------------------------------------------------------- | |
" Copyright (C) 2007 KaoriYa/MURAOKA Taro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment