I have muscle memory of the vi/vim commands. So in bash, I use the vi mode, for example, I can easily go back to my command history and re-edit previous commands.
Are vi shortcuts available with pry or irb? If so, how do I set it up?
Thank you.
I have muscle memory of the vi/vim commands. So in bash, I use the vi mode, for example, I can easily go back to my command history and re-edit previous commands.
Are vi shortcuts available with pry or irb? If so, how do I set it up?
Thank you.
Not sure about re-editing previous commands, but you could use interactive editor gem to start vim-like editing from inside of your irb
. Using that, you can start irb
, edit your script in vim and let ruby shell execute it immediately. Here is a great tutorial on this: Running Vim within IRB.