From 64bacc12b03e2d0c1b5e4cf0d4c0c81ee7a60b6e Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 27 Apr 2017 11:11:13 +0100 Subject: [PATCH] Check for +printer and configure the header --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 3c20e2a..a016359 100644 --- a/vimrc +++ b/vimrc @@ -52,7 +52,6 @@ set nojoinspaces set nrformats-=octal set number set omnifunc=syntaxcomplete#Complete -set printoptions=paper:A4,duplex:off,header:0 set relativenumber set ruler set sessionoptions-=options @@ -128,6 +127,11 @@ if has("patch-7.4.710") set listchars+=space:ยท endif +if has("printer") + set printheader=%t%h%m%=Page\ %N + set printoptions=paper:A4,number:y,syntax:n +endif + if has("smartindent") set smartindent endif