[NTLUG:Discuss] lpr tabstops
    MadHat 
    madhat at unspecific.com
       
    Wed Mar  1 14:26:23 CST 2000
    
    
  
Cameron wrote:
> 
> i generally set my tabstop=4 in vi(m).  is there a way to tell lpr or
> vi(m) to print tabs as 4 spaces instead of the default 8 spaces?  btw, i
> print from vi(m) with ":w !lpr".  TIA
it is possible to make lpr call pr to format the page before printing,
by using the -p flag, and pr can do what you want with the -e tag
from 'map pr'
"-e[in-tab-char[in-tab-width]]
              Expand tabs to spaces on input.  Optional  argument
              in-tab-char  is  the  input  tab character, default
              tab.  Optional argument in-tab-width is  the  input
              tab character's width, default 8."
but I am not sure how to put the 2 together...
-- 
%_=split';','f; Perl ;h;st a;o;ker;@;not;.;hac;u;her;d;ju';
print map $_{$_}, split //,
'madhat at unspecific.com'
# aka Lee Heath, but don't tell anyone.
    
    
More information about the Discuss
mailing list