[from now] 2014/08/03 19:08:42

diff --git a/.peco-snippets b/.peco-snippets
index 760dd7f..c7b9c1e 100644
--- a/.peco-snippets
+++ b/.peco-snippets
@@ -53,7 +53,8 @@ ghq get git@github.com:yukimemi/ActiveXFileWrapper.js.git
 # others
 ghq get https://github.com/liangxianzhe/oh-my-vim.git
 ghq get https://github.com/Shougo/shougo-s-github.git
-ghq get https://github.com/eagletmt/dotfiles
+ghq get https://github.com/eagletmt/dotfiles.git
+ghq get https://github.com/supermomonga/dotfiles.git

 # bitbucket
 ghq get git@bitbucket.org:yukimemi/haskell.git
@@ -77,6 +78,10 @@ curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/prepare_mac.sh |
 curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/install.sh | sh
 curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/uninstall.sh | sh

+# Add git upstream repo
+git remote add upstream https://github.com/erikw/tmux-powerline.git
+git remote add upstream https://github.com/sorin-ionescu/prezto.git
+
 # beer http://deeeet.com/writing/2014/04/30/beer-on-terminal/
 ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\xf0\x9f\x8d\xba";a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.01}'
 # snow http://melborne.github.io/2013/12/13/translate-let-it-snow-in-the-terminal/
diff --git a/Brewfile b/Brewfile
index d629540..3eb3fbc 100644
--- a/Brewfile
+++ b/Brewfile
@@ -3,7 +3,6 @@ update
 tap homebrew/dupes || true
 tap phinze/homebrew-cask || true
 tap sanemat/font || true
-tap supermomonga/homebrew-splhack

 install reattach-to-user-namespace
 install --disable-etcdir zsh
@@ -23,19 +22,26 @@ install ghc
 install haskell-platform
 install --powerline ricty

+# for tmux-powerline
+install homebrew/dupes/grep
+
 # macvim
-# install macvim --with-cscope --with-lua --HEAD --override-system-vim
-install cscope
-install lua
-install --HEAD cmigemo-mk
-install --HEAD ctags-objc-ja
-install macvim-kaoriya --HEAD --with-lua --with-cscope
+install macvim --with-cscope --with-lua --override-system-vim --HEAD
+
+# macvim-kaoriya
+tap supermomonga/homebrew-splhack
+# install cscope
+# install lua
+# install --HEAD cmigemo-mk
+# install --HEAD ctags-objc-ja
+# install macvim-kaoriya --HEAD --with-lua --with-cscope

 install brew-cask
 cask install google-chrome
 cask install firefox
-cask install keyremap4macbook
+cask install karabiner
 cask install caffeine
+cask install nosleep
 cask install bettertouchtool
 cask install iterm2
 cask install quicksilver
diff --git a/vim/.vimrc b/vim/.vimrc
index e1bc0f4..8878a1f 100755
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -33,9 +33,9 @@ if has('vim_starting') && has('reltime')
 endif"}}}

 " Use <Leader> in global plugin.
-let g:mapleader = ','
+let mapleader = ','
 " Use <LocalLeader> in filetype plugin.
-let g:maplocalleader = ' '
+let maplocalleader = ' '
 "===================================================================================}}}

 "{{{ ========== Plugins ===============================================================
@@ -212,6 +212,7 @@ NeoBundleLazy 'osyo-manga/unite-qfixhowm', {'depends': 'fuenor/qfixhowm'}
 NeoBundleLazy 'osyo-manga/vim-operator-blockwise', {'depends': 'kana/vim-operator-user'}
 NeoBundleLazy 'osyo-manga/vim-operator-search', {'depends': 'kana/vim-operator-user'}
 NeoBundleLazy 'osyo-manga/vim-over'
+NeoBundleLazy 'osyo-manga/unite-quickfix'
 NeoBundleLazy 'pangloss/vim-javascript'
 NeoBundleLazy 'pasela/unite-webcolorname'
 NeoBundleLazy 'rhysd/unite-codic.vim', {'depends': 'koron/codic-vim'}
@@ -428,7 +429,7 @@ set switchbuf=useopen
 set nrformats-=octal
 set timeoutlen=3500
 set hidden
-set history=100000
+set history=10000
 set formatoptions+=mM
 set textwidth=0
 set virtualedit=block
@@ -526,13 +527,16 @@ au MyAutoCmd WinLeave * call s:auto_cursorline('WinLeave')
 let s:cursorline_lock = 0
 function! s:auto_cursorline(event)
   if a:event ==# 'WinEnter'
+    echo 'WinEnter'.s:cursorline_lock
     setlocal cursorline
     setlocal cursorcolumn
     let s:cursorline_lock = 2
   elseif a:event ==# 'WinLeave'
+    echo 'WinLeave'.s:cursorline_lock
     setlocal nocursorline
     setlocal nocursorcolumn
   elseif a:event ==# 'CursorMoved'
+    echo 'CursorMoved'.s:cursorline_lock
     if s:cursorline_lock
       if 1 < s:cursorline_lock
         let s:cursorline_lock = 1
@@ -543,15 +547,17 @@ function! s:auto_cursorline(event)
       endif
     endif
   elseif a:event ==# 'CursorHold'
-    setlocal cursorline
-    setlocal cursorcolumn
+    echo 'CursorHold'.s:cursorline_lock
+    if &updatetime >= 4000
+      setlocal cursorline
+      setlocal cursorcolumn
+    endif
     let s:cursorline_lock = 1
   endif
 endfunction"}}}

 " http://mattn.kaoriya.net/software/vim/20140523124903.htm
 let g:markdown_fenced_languages = [
-      \ 'coffee',
       \ 'css',
       \ 'erb=eruby',
       \ 'javascript',
@@ -629,11 +635,11 @@ vnoremap : q:A

 "  for git mergetool
 if &diff
-  nnoremap <Leader>1 :diffget LOCAL<CR>
-  nnoremap <Leader>2 :diffget BASE<CR>
-  nnoremap <Leader>3 :diffget REMOTE<CR>
-  nnoremap <Leader>u :<C-u>diffupdate<CR>
-  nnoremap u u:<C-u>diffupdate<CR>
+  nnoremap <buffer> <Leader>1 :diffget LOCAL<CR>
+  nnoremap <buffer> <Leader>2 :diffget BASE<CR>
+  nnoremap <buffer> <Leader>3 :diffget REMOTE<CR>
+  nnoremap <buffer> <Leader>u :<C-u>diffupdate<CR>
+  nnoremap <buffer> u u:<C-u>diffupdate<CR>
 endif

 " hilight over 100 column {{{
@@ -841,17 +847,13 @@ if neobundle#tap('vim-submode')"{{{
   nnoremap sN :<C-u>bn<CR>
   nnoremap sP :<C-u>bp<CR>
   nnoremap st :<C-u>tabnew<CR>
-  nnoremap sT :<C-u>Unite tab<CR>
   nnoremap ss :<C-u>sp<CR>
   nnoremap sv :<C-u>vs<CR>
   nnoremap sq :<C-u>q<CR>
   nnoremap sQ :<C-u>bd<CR>
-  nnoremap sb :<C-u>Unite buffer_tab<CR>
-  nnoremap sf :<C-u>Unite file<CR>
-  nnoremap sF :<C-u>Unite file_rec/async<CR>
-  nnoremap sB :<C-u>Unite buffer<CR>
-  nnoremap su :<C-u>Unite buffer neomru/file<CR>
-  nnoremap sa :<C-u>Unite buffer neomru/file bookmark file file_rec/async<CR>
+
+  nnoremap sbk :<C-u>bd!<CR>
+  nnoremap sbq :<C-u>q!<CR>

   call submode#enter_with('bufmove', 'n', '', 's>', '<C-w>>')
   call submode#enter_with('bufmove', 'n', '', 's<', '<C-w><')
@@ -908,7 +910,7 @@ if neobundle#tap('TweetVim')"{{{
   function! s:my_tweetvim_mappings()
     setl nowrap
     nnoremap <buffer> [Space]s :<C-u>TweetVimSay<CR>
-    nnoremap <buffer> <leader>s :<C-u>TweetVimSearch<Space>
+    nnoremap <buffer> <Leader>s :<C-u>TweetVimSearch<Space>
     nnoremap <buffer> [Space]tl :<C-u>Unite tweetvim<CR>
     nnoremap <buffer> [Space]ta :<C-u>Unite tweetvim/account<CR>
   endfunction
@@ -1021,7 +1023,6 @@ if neobundle#tap('vimshell.vim')"{{{
             \| call vimshell#altercmd#define('vimfiler', 'gvim -c VimFilerDouble')
             \| endif

-
     function! g:my_chpwd(args, context)
       call vimshell#execute('ls')
     endfunction
@@ -1101,21 +1102,29 @@ if neobundle#tap('unite.vim')"{{{
         \ })

   " Use plefix s
-  nnoremap <silent> suc :<C-u>Unite colorscheme -auto-preview<CR>
-  nnoremap <silent> suy :<C-u>Unite history/yank<CR>
-  nnoremap <silent> sub :<C-u>Unite buffer -auto-preview<CR>
-  nnoremap <silent> suf :<C-u>Unite file_rec<CR>
-  nnoremap <silent> suF :<C-u>Unite file_rec/async<CR>
-  nnoremap <silent> sub :<C-u>Unite bookmark -default-action=cd<CR>
-  nnoremap <silent> suo :<C-u>Unite outline<CR>
-  nnoremap <silent> suq :<C-u>Unite qf -no-quit<CR>
-  nnoremap <silent> suh :<C-u>Unite help<CR>
-  nnoremap <silent> sug  :<C-u>Unite register<CR>
-  nnoremap <silent> sm  :<C-u>Unite neomru/file -auto-preview<CR>
-  nnoremap <silent> s/  :<C-u>Unite line/fast -no-quit<CR>
-  nnoremap <silent> sg :<C-u>Unite grep -no-quit<CR>
-
-  nnoremap <silent> sR :<C-u>UniteResume<CR>
+  nnoremap suc :<C-u>Unite colorscheme -auto-preview<CR>
+  nnoremap suy :<C-u>Unite history/yank<CR>
+  nnoremap sub :<C-u>Unite buffer -auto-preview<CR>
+  if s:is_windows
+    nnoremap suf :<C-u>Unite file_rec<CR>
+    nnoremap suF :<C-u>Unite file_rec<CR>
+  else
+    nnoremap suf :<C-u>Unite file_rec/async<CR>
+    nnoremap suF :<C-u>Unite file_rec/async<CR>
+  endif
+  nnoremap suB :<C-u>Unite bookmark -default-action=cd<CR>
+  nnoremap suo :<C-u>Unite outline -no-quit -no-start-insert -vertical -winwidth=40<CR>
+  nnoremap suq :<C-u>Unite quickfix -no-quit<CR>
+  nnoremap suh :<C-u>Unite help<CR>
+  nnoremap sur :<C-u>Unite register<CR>
+  nnoremap sum :<C-u>Unite neomru/file -auto-preview<CR>
+  nnoremap su/ :<C-u>Unite line -no-quit<CR>
+  nnoremap sug :<C-u>Unite grep -no-quit<CR>
+  nnoremap sut :<C-u>Unite tab<CR>
+  nnoremap suu :<C-u>Unite buffer neomru/file<CR>
+  nnoremap sua :<C-u>Unite buffer neomru/file bookmark file file_rec/async<CR>
+  nnoremap suM :<C-u>Unite mapping<CR>
+  nnoremap suR :<C-u>UniteResume<CR>

   " NeoBundle
   nnoremap sui :<C-u>Unite neobundle/update -no-start-insert<CR>
@@ -2852,6 +2861,17 @@ if neobundle#tap('vim-stylus')"{{{
 endif
 "}}}

+if neobundle#tap('unite-quickfix')"{{{
+  call neobundle#config({
+        \ 'autoload': {
+        \   'unite_sources': ['location_list', 'quickfix']
+        \ }
+        \ })
+
+  call neobundle#untap()
+endif
+"}}}
+
 " disable plugin
 let plugin_dicwin_disable = 1
 "===================================================================================}}}
diff --git a/vimperator/.vimperatorrc b/vimperator/.vimperatorrc
index 38d6924..573ffd3 100755
--- a/vimperator/.vimperatorrc
+++ b/vimperator/.vimperatorrc
@@ -201,7 +201,7 @@ if (liberator.has("Win32")) {
 }
 EOM

-let g:plugin_loader_plugins = "_libly,_smooziee,auto-focus-frame,commandBookmarklet,multi_requester,copy,opener-ex,stella,twittperator,slideshare,hints-ext,x-hint,smooth-scroll,xpath-hint,graphical-position"
+let g:plugin_loader_plugins = "_libly,_smooziee,auto-focus-frame,commandBookmarklet,multi_requester,copy,opener-ex,stella,twittperator,slideshare,hints-ext,x-hint,smooth-scroll,xpath-hint,graphical-position,statusbar_panel"

 " hints-ext"{{{
 let use_hintchars_ex=2