Check for +printer and configure the header
This commit is contained in:
parent
b2a3543d93
commit
64bacc12b0
1 changed files with 5 additions and 1 deletions
6
vimrc
6
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue