Created
December 27, 2011 06:22
-
-
Save shohei/1522861 to your computer and use it in GitHub Desktop.
Vim configuration file
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 autoindent$ | |
"バックアップファイルを作るディレクトリ$ | |
set backupdir=$HOME/vimbackup$ | |
"ファイル保存ダイアログの初期ディレクトリをバッファファイル位置に設定$ | |
set browsedir=buffer$ | |
"クリップボードをWindowsと連携$ | |
set clipboard=unnamed$ | |
"Vi互換をオフ$ | |
set nocompatible$ | |
"スワップファイル用のディレクトリ$ | |
set directory=$HOME/vimbackup$ | |
"タブの代わりに空白文字を挿入する$ | |
set expandtab$ | |
"変更中のファイルでも、保存しないで他のファイルを表示$ | |
set hidden$ | |
"インクリメンタルサーチを行う$ | |
set incsearch$ | |
"タブ文字、行末など不可視文字を表示する$ | |
set list$ | |
"listで表示される文字のフォーマットを指定する$ | |
set listchars=eol:$,tab:>\ ,extends:<$ | |
"行番号を表示する$ | |
set number$ | |
"シフト移動幅$ | |
"set shiftwidth=4$ | |
"閉じ括弧が入力されたとき、対応する括弧を表示する$ | |
set showmatch$ | |
"検索時に大文字を含んでいたら大/小を区別$ | |
set smartcase$ | |
"新しい行を作ったときに高度な自動インデントを行う$ | |
set smartindent$ | |
"行頭の余白内で Tab を打ち込むと、'shiftwidth' の数だけインデントする。$ | |
set smarttab$ | |
"ファイル内の が対応する空白の数$ | |
"set tabstop=4$ | |
"カーソルを行頭、行末で止まらないようにする$ | |
set whichwrap=b,s,h,l,<,>,[,]$ | |
"検索をファイルの先頭へループしない$ | |
set nowrapscan$ | |
"縦幅$ | |
set lines=40$ | |
"横幅$ | |
set columns=100$ | |
"入力モード時、ステータスラインのカラーを変更$ | |
augroup InsertHook$ | |
autocmd!$ | |
autocmd InsertEnter * highlight StatusLine guifg=#ccdc90 guibg=#2E4340$ | |
autocmd InsertLeave * highlight StatusLine guifg=#2E4340 guibg=#ccdc90$ | |
augroup END$ | |
"日本語入力をリセット$ | |
au BufNewFile,BufRead * set iminsert=0$ | |
"タブ幅をリセット$ | |
au BufNewFile,BufRead * set tabstop=4 shiftwidth=4$ | |
"日本語入力を追加$ | |
:set encoding=utf-8$ | |
"filetype off$ | |
" pathogen.vimによってbundle配下のpluginをpathに加える$ | |
"call pathogen#runtime_append_all_bundles()$ | |
"call pathogen#helptags()$ | |
"set helpfile=$VIMRUNTIME/doc/help.txt$ | |
" ファイルタイプ判定をon$ | |
"filetype plugin on$ | |
"configuration of pathogen, commented out temporally on 21th Nov.$ | |
"call pathogen#infect()$ | |
"syntax on$ | |
"filetype plugin indent on$ | |
"プラグインを読み込むパスの指定$ | |
"http://nanasi.jp/articles/howto/config/runtimepath.html$ | |
:set runtimepath+={~/.vim/autoload/}$ | |
"for zencoding.vim$ | |
":set filetype=html$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment