Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
created 2005 · complexity intermediate · author Suresh Govindachar · version 6.0
Requires: Vim 6.x with Perl support. Uses Perl module MIME::Base64.
If you have MIME Base64 or Quoted-Printable encoded text in a Vim buffer, the following commands can be used to replace the encoded lines with their decoded information. Just visually select the lines corresponding to the encoded text and issue the appropriate command (
command! -range=% Decode64 :w | <line1>,<line2>delete | let foo = @" \| perl my $foo=VIM::Eval(foo); my ($r, $c)=$curwin->Cursor(); $curbuf->Append($r-1, split '\n', MIME::Base64::decode($foo)); command! -range=% DecodeQP :w | <line1>,<line2>delete | let foo = @" \| perl my $foo=VIM::Eval(foo); my ($r, $c)=$curwin->Cursor(); $curbuf->Append($r-1, split '\n', MIME::QuotedPrint::decode_qp($foo));