Changed color schema when printing

This commit is contained in:
Deon Spengler
2015-05-04 00:09:24 +02:00
parent b1847f3208
commit 12e539d3e1

10
.vimrc
View File

@@ -22,6 +22,7 @@ Plugin 'bling/vim-airline'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/nerdcommenter'
Plugin 'nanotech/jellybeans.vim'
Plugin 'reedes/vim-colors-pencil'
call vundle#end()
" set color scheme
@@ -100,3 +101,12 @@ let g:UltiSnipsExpandTrigger="<C-j>"
" 80 column layout for python
autocmd FileType python set colorcolumn=80
" set color for printing
command Hardcopy call Hardcopy()
function! Hardcopy()
let colors_save = g:colors_name
colorscheme default
hardcopy
execute 'colorscheme' colors_save
endfun