Check for +printer and configure the header

This commit is contained in:
Anthony Rose 2017-04-27 11:11:13 +01:00
parent b2a3543d93
commit 64bacc12b0

6
vimrc
View file

@ -52,7 +52,6 @@ set nojoinspaces
set nrformats-=octal set nrformats-=octal
set number set number
set omnifunc=syntaxcomplete#Complete set omnifunc=syntaxcomplete#Complete
set printoptions=paper:A4,duplex:off,header:0
set relativenumber set relativenumber
set ruler set ruler
set sessionoptions-=options set sessionoptions-=options
@ -128,6 +127,11 @@ if has("patch-7.4.710")
set listchars+=space set listchars+=space
endif endif
if has("printer")
set printheader=%t%h%m%=Page\ %N
set printoptions=paper:A4,number:y,syntax:n
endif
if has("smartindent") if has("smartindent")
set smartindent set smartindent
endif endif