sponsor Vim development Vim logo Vim Book Ad

pry : Pry/Vim Integration

 script karma  Rating 14/5, Downloaded by 1247  Comments, bugs, improvements  Vim wiki

created by
Ryan King
 
script type
ftplugin
 
description
For the high-falutin' concept, see: https://github.com/pry/pry/wiki/pry-de

iabbr bpry => require 'pry'; binding.pry # Very important for quickly dropping into pry

<leader>bp and <leader><leader>p # same as bpry but from Normal Mode

<f3> = kill-pry-rescue # see https://github.com/ConradIrwin/pry-rescue - this breaks you out of the auto-rescue'd pry

<leader>ph = Grab the last line (or lines if given a numerical arg) from ~/.pry_history - can be very handy, because you can perfect your code in the live coding environment of the Pry REPL, then slurp that into your editor.

Note that there are ways to integrate back into the REPL from the editor. vslime and vimux do this, as long as you're in tmux. However, I currently just do "!tmux send -t1" in a manual :map from vim. This script might eventually include something like this. Please let me know if you already know what you want.
 
install details
Just put ruby_pry.vim in ~/.vim/ftplugin/

Or you could use Pathogen, installing to ~/.vim/bundle/pry/

 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ruby_pry.vim 1.0 2013-02-19 7.0 Ryan King Initial upload
ip used for rating: 44.220.184.63

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github