I’m sure the Padre developers weren’t hoping to have their code absconded for those of us addicted to vim, but tsee’s recent blog post on refactoring with Padre’s lexical variable replace made me jealous–I want that for vim! So hack, hack, hack and _voila_:
This really is just leveraging the Padre code. At this point I actually
use Padre::PPI
but that has the downside of requiring
Wx
(which I personally like but it is quite a requirement). I only
added a bit of code to make this into its own package and included some hints
on vim scripting. The idea is to show how this could be abstracted into a
standalone module then Padre, vim and any other reasonably powerful editor
could use it. For now, I have packaged it as App::LexVarReplace
with App::LexVarReplace::Vim
pod. I would appreciate suggestions
on the package layout and name, and any feedback from the Padre guys would be
great. The git repository is available
for your perusal. I must say that Padre seems very cool. I continue to check
it out every once in a while, but I just can’t seem to give up vim, gnu screen and a good old
xterm. The developers have really done a great job leveraging modern Perl
tools. You should check it out! I am only publishing this on github for now. I
would like to speak with tsee or one of the Padre developers before this makes
it debut on CPAN, but I’m a bit short on time at the moment.
The contents of this blog are licensed under the Creative Commons “Attribution-Noncommercial-Share Alike 3.0″ license.