Entries from 2012-08-07 to 1 day

method throw exeption when Hash's key is not foud.

hash.fetch(key) throw exeption such as KeyError: key not found: #{key}

use emacs keybind in vim comand line mode

" ~/.vimrc cnoremap <C-A> <Home> cnoremap <C-E> <End> cnoremap <C-F> <Right> cnoremap <C-B> <Left> cnoremap <C-P> <UP> cnoremap <C-N> <Down> " add at 2012/10/4 (from http://vim.g.hatena.ne.jp/tyru/20100116) cnoremap <C-k> <C-\>e getcmdpos() == 1 ? '' : getcmdline()[:getcmdpos()-2]<CR></cr></c-\></c-k></down></c-n></up></c-p></left></c-b></right></c-f></end></c-e></home></c-a>