Skip to content

Instantly share code, notes, and snippets.

@zph
Created June 10, 2013 18:47
Show Gist options
  • Save zph/5751187 to your computer and use it in GitHub Desktop.
Save zph/5751187 to your computer and use it in GitHub Desktop.
" 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