[Novalug] vi Question
Russell Evans
russell-evans at qwest.net
Fri Jan 26 06:07:35 EST 2007
On Thu, 25 Jan 2007 23:26:59 -0500
"Dan Arico" <dan_arico at aricosystems.com> wrote:
> On Thu January 25 2007 10:10 pm, Russell Evans wrote:
> > On Wed, 24 Jan 2007 21:44:11 -0500
> >
> > "Dan Arico" <dan_arico at aricosystems.com> wrote:
> > > Is there some place kvim saves a configuration file with the
> > > printer settings? When I print hardcopy, it's printer duplex and
> > > wants A4 paper. I can use command options to change that, but I
> > > haven't been able to do it permanently.
> >
> > Try /etc/papersize
> >
> >
> > Thank you
> > Russell
>
> Nope. That says letter.
>
> Dan
>
So do you have something like this in vimrc
" Set paper size from /etc/papersize if available (Debian-specific)
try
if filereadable('/etc/papersize')
let s:papersize = matchstr(system('/bin/cat /etc/papersize'), '\p*')
if strlen(s:papersize)
let &printoptions = "paper:" . s:papersize
endif
unlet! s:papersize
endif
catch /E145/
endtry
Thank you
Russell
More information about the Novalug
mailing list