Wikia

Vim Tips Wiki

Changes: Quoted Printable to Plain

Edit

Back to page

(Adjust previous/next navigation)
(Adjust previous/next navigation + minor manual clean)
 
Line 1: Line 1:
 
{{TipImported
 
{{TipImported
 
|id=1012
 
|id=1012
|previous=1011
+
|previous=1010
 
|next=1014
 
|next=1014
|created=October 6, 2005
+
|created=2005
 
|complexity=intermediate
 
|complexity=intermediate
 
|author=Bertram Scharpf
 
|author=Bertram Scharpf

Latest revision as of 10:55, September 23, 2009

Tip 1012 Printable Monobook Previous Next

created 2005 · complexity intermediate · author Bertram Scharpf · version 6.0


Sometimes I pipe an email into Vim and then I cannot read it because it is encoded in quoted printable. Mentioning this in my vimrc helps:

nnoremap <Leader>Q :%s/=\(\x\x\<BAR>\n\)/\=submatch(1)=='\n'?'':nr2char('0x'.submatch(1))/ge<CR>
vnoremap <Leader>Q :s/=\(\x\x\<BAR>\n\)/\=submatch(1)=='\n'?'':nr2char('0x'.submatch(1))/ge<CR>

CommentsEdit

Around Wikia's network

Random Wiki