Created
June 10, 2013 18:47
-
-
Save zph/5751187 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" Nab lines from ~/.pry_history (respects "count") | |
nmap <Leader>ph :<c-u>let pc = (v:count1 ? v:count1 : 1)<cr>:read !tail -<c-r>=pc<cr> ~/.pry_history<cr>:.-<c-r>=pc-1<cr>:norm <c-r>=pc<cr>==<cr> | |
" ↑ thanks to Houl, ZyX-i, and paradigm of #vim for all dogpiling on this one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment