
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Drew Neil has made it the subject of one of his vimcasts: vimcasts #20: running Vim within IRB, and Chad Perrin has written an article about it on TechRepublic: Use interactive_editor with irb for an inside-out Ruby IDE. There's also an outdated blog post which predates the gem from 2009: Integrating vim and IRB.
$ gem install interactive_editor
Put the following in your .irbrc:
require 'rubygems'
require 'interactive_editor'
Then, from within irb:
$ irb # or ripl
> vi # (use vi w/ temp file)
> vi 'filename.rb' # (open filename.rb in vi)
> ed # (use EDITOR env variable)
> [emacs|vim|mvim|nano|mate] # (other editors)
Bonus: editing of objects on the fly (inspired by _why's object aorta)
$ irb
> { 'chunky' => 'bacon' }.vi
To try it out without installing the gem:
$ git clone git://github.com/jberkel/interactive_editor.git
$ cd interactive_editor
$ rake console
interactive_editor also works with the IRB alternatives ripl and pry.
Giles Bowkett, Greg Brown, and several audience members from Giles' Ruby East presentation: Use vi or any text editor from within IRB.
With contributions from:
FAQs
Unknown package
We found that interactive_editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.