Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #1032 - Decode MIME text using Perl in Vim

Created: October 29, 2005 18:05 Complexity: intermediate Author: Suresh Govindachar Version: 6.0 Karma: 14/8 Imported from: Tip#1032

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 (:Decode64 or DecodeQP). 


command! -range=% Decode64 :w

Comments

Advertisement