Think about Loose Coupling | |
PerlMonks |
Re^3: How do I create a simple, perl-based text filter for Vimby mr_mischief (Monsignor) |
on Feb 14, 2005 at 01:51 UTC ( [id://430666]=note: print w/replies, xml ) | Need Help?? |
I'm not sure if it would be a Windows issue or a porting issue of vim, and I'd be interested to know if any of these suggestions work:
If all else fails, remember that from within vim you can edit a second file, save it, etc. You could yank the needed text, ':new temp' to edit another file, put (paste) the text there, ':w' to write the file, ':!./filter temp' to change the temp file on disk, yank the changed version from that window, quit the new window, reselect the portion in the original file, and paste the buffer over the original section. Since vim has a macro recording function, I'd record parts of that mess as macros. That may be part of what you're trying to avoid, too, though. In any case, it's probably more of a pain than you want. Christopher E. Stith
In Section
Seekers of Perl Wisdom
|
|