Created
July 1, 2011 01:07
-
-
Save kechol/1057668 to your computer and use it in GitHub Desktop.
vimrc settings
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
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=utf-8,iso-2022-jp,euc-jp,ucs2le,ucs-2 | |
set wrap | |
set wrapscan | |
set number | |
set ruler | |
set noexpandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set nocompatible | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
"matchit pluginの読み込み | |
source $VIMRUNTIME/macros/matchit.vim | |
"入力モード時、ステータスラインのカラーを変更 | |
augroup InsertHook | |
autocmd! | |
autocmd InsertEnter * highlight StatusLine guifg=#ccdc90 guibg=#2E4340 | |
autocmd InsertLeave * highlight StatusLine guifg=#2E4340 guibg=#ccdc90 | |
augroup END | |
"全角スペースを視覚化 | |
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=#666666 | |
au BufNewFile,BufRead * match ZenkakuSpace / / | |
"zen-coding.vim | |
"キーバインドの設定 | |
let g:user_zen_expandabbr_key = '<c-e>' | |
"rails.vim | |
"<C-Space>でomni補完 | |
imap <C-Space> <C-x><C-o> | |
"filetype php.vim | |
set noexpandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
nmap ,l :execute '!php -l %'<CR> | |
let php_sql_query = 1 | |
let php_htmlInStrings = 1 | |
let php_noShortTags = 1 | |
let php_folding = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment