[from now] 2012/05/29 03:58:49

diff --git c/.gitignore i/.gitignore
index c1a64aa..00b5b19 100644
--- c/.gitignore
+++ i/.gitignore
@@ -16,3 +16,9 @@ zsh/*
 !zsh/completions/
 !zsh/zshrc.d/

+
+!vim
+vim/*
+!vim/README.md
+!vim/vimrc
+
diff --git c/vim/vimrc i/vim/vimrc
new file mode 100644
index 0000000..1ff4113
--- /dev/null
+++ i/vim/vimrc
@@ -0,0 +1,187 @@
+" -*- coding: utf-8-unix; -*-
+"" $HOME/.vimrc
+"""
+set nocompatible
+"""
+let s:is_windows = has('win32') || has('win64')
+if s:is_windows
+  language message en
+  set shellslash
+else
+  language message C
+endif
+"""
+let mapleader = ','
+let g:mapleader = ','
+nnoremap , <Nop>
+xnoremap , <Nop>
+"""
+let g:maplocalleader = 'm'
+nnoremap m <Nop>
+xnoremap m <Nop>
+"""
+function! s:SID_PREFIX()
+  return matchstr(expand('<sfile>'), '<SNR>\d\+_\zeSID_PREFIX$')
+endfunction
+"""
+function! s:set_default(key, val)
+  if !exists(a:key) || type({a:key}) != type(a:val)
+    let {a:key} = a:val
+  endif
+endfunction
+"""
+augroup MyAutoCmd
+  autocmd!
+augroup END
+"""
+filetype off
+filetype indent off
+filetype plugin off
+"""
+if has('vim_starting')
+  if s:is_windows
+    let &runtimepath = join([
+      \ expand('~/.vim'),
+      \ expand('$VIM/runtime'),
+      \ expand('~/.vim/after')] ',')
+  endif
+"""
+  set runtimepath+=~/.neobundle/neobundle.vim/
+"""
+  syntax enable
+endif
+call neobundle#rc(expand('~/.neobundle/'))
+"""
+"" github.com/Shougo
+NeoBundle 'Shougo/neobundle.vim.git'
+NeoBundle 'Shougo/vimproc.git'
+NeoBundle 'Shougo/vimshell.git'
+NeoBundle 'Shougo/echodoc.git'
+NeoBundle 'Shougo/neocomplcache.git'
+NeoBundle 'Shougo/neocomplcache-snippets-complete.git'
+NeoBundle 'Shougo/unite.vim'
+NeoBundle 'Shougo/vinarise.git'
+NeoBundle 'Shougo/vimfiler.git'
+NeoBundle 'Shougo/foldCC.git'
+"""
+"" github.com/mattn
+NeoBundle 'mattn/zencoding-vim'
+NeoBundle 'mattn/webapi-vim'
+NeoBundle 'mattn/gist-vim'
+let g:gist_clip_command = 'pbcopy'
+let g:gist_browser_command = 'open %URL% &'
+let g:gist_post_privatee = 1
+let g:gist_show_privates = 1
+"""
+"" github.com/kana
+NeoBundle 'kana/vim-smartchr.git'
+NeoBundle 'kana/vim-smartword.git'
+NeoBundle 'kana/vim-smarttill.git'
+NeoBundle 'kana/vim-fakeclip.git'
+"""
+"" github.com/thinca
+NeoBundle 'thinca/vim-ft-vim_fold.git'
+NeoBundle 'thinca/vim-ref.git'
+"""
+"" github.com/tyru
+NeoBundle 'tyru/vim-altercmd.git'
+"""
+"" github.com/ujihisa
+"""
+"" github.com/vim-jp
+NeoBundle 'vim-jp/vital.vim.git'
+"""
+"" gist.github.com
+NeoBundle 'git://gist.github.com/187578.git', {'directory': 'h2u_white'}
+"""
+filetype plugin on
+filetype indent on
+"""
+let g:V = vital#of('vital')
+"""
+set backspace=indent,eol,start
+set hidden
+set history=1300
+set ruler
+set number
+set nowrap
+set showcmd
+set showmatch
+set backupdir=~/tmp
+set directory=~/tmp
+set smarttab
+set expandtab
+set shiftwidth=4
+set laststatus=2
+"""
+set wildmenu
+set wildmode=list:longest,full
+"""
+set formatoptions-=or
+"""
+map N Nzz
+map n nzz
+"""
+set background=dark
+colorscheme h2u_dark
+"""
+if has("autocmd")
+    " Put these in an autocmd group, so that we can delete them easily.
+    augroup vimrcEx
+        au!
+        autocmd BufReadPost *
+            \ if line("'\"") > 0 && line("'\"") <= line("$") |
+            \ exe "normal g`\"" |
+            \ endif
+    augroup END
+endif " has("autocmd")
+"""
+" paste in insert mode is <C-o>p
+" while paste in command-line mode is <C-r>"
+" it's confusing.
+cnoremap <C-o>p <C-r>"
+" for speedup
+nnoremap /<C-o>p /<C-r>"
+"""
+function! EmptyBufferP()
+    return expand('%') == '' && !&modified
+endfunction
+"""
+nmap <Space>v <Plug>(vimshell_split_switch)
+nnoremap <Space>V :<C-u>new<CR>:VimShellCreate<CR>
+let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
+let g:vimshell_prompt = '$ '
+let g:vimshell_split_command = 'vnew'
+"""
+function! s:vimshell_local()
+  nmap <buffer> j <Plug>(vimshell_next_prompt)
+  nmap <buffer> k <Plug>(vimshell_previous_prompt)
+endfunction
+autocmd FileType vimshell call s:vimshell_local()
+"""
+function! s:vimshell_iexe()
+  nmap <buffer> j <Plug>(vimshell_int_next_prompt)
+  nmap <buffer> k <Plug>(vimshell_int_previous_prompt)
+endfunction
+autocmd FileType int-* call s:vimshell_iexe()
+""" Neocomplcache
+let g:neocomplcache_enable_at_startup = 1
+let g:neocomplcache_enable_auto_delimiter = 1
+let g:neocomplcache_max_list = 100
+
+" thinca's local vimrc http://vim-users.jp/2009/12/hack112/
+" Load settings for eacy location.
+augroup vimrc-local
+  autocmd!
+  autocmd BufNewFile,BufReadPost * call s:load_local_vimrc(expand('<afile>:p:h'))
+augroup END
+"""
+function! s:load_local_vimrc(loc)
+  let files = findfile('.vimrc.local', escape(a:loc, ' ') . ';', -1)
+  for i in reverse(filter(files, 'filereadable(v:val)'))
+    source `=i`
+  endfor
+endfunction
+"""
+" __END__
+" vim: filetype=vim