About: Printing with syntax highlighting independent of your normal highlighting   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

I copied an existing colorscheme to ~/.vim/colors/print.vim, and changed all the lines like this: highlight Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20 to this: highlight clear Normal Then I set the syntax groups how I wanted them to be printed on the printer: highlight Comment term=italic cterm=italic gui=italic highlight Constant term=bold cterm=bold gui=bold ...etc... I then defined the following command and function in my vimrc: After this is complete, you can do (use uppercase 'H'): :Hardcopy > /tmp/out.ps or just :Hardcopy

AttributesValues
rdfs:label
  • Printing with syntax highlighting independent of your normal highlighting
rdfs:comment
  • I copied an existing colorscheme to ~/.vim/colors/print.vim, and changed all the lines like this: highlight Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20 to this: highlight clear Normal Then I set the syntax groups how I wanted them to be printed on the printer: highlight Comment term=italic cterm=italic gui=italic highlight Constant term=bold cterm=bold gui=bold ...etc... I then defined the following command and function in my vimrc: After this is complete, you can do (use uppercase 'H'): :Hardcopy > /tmp/out.ps or just :Hardcopy
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 108(xsd:integer)
Category
  • Syntax
Author
  • Aric Blumer
Complexity
  • intermediate
Created
  • 2001(xsd:integer)
ID
  • 111(xsd:integer)
NEXT
  • 113(xsd:integer)
Rating
  • 22(xsd:integer)
abstract
  • I copied an existing colorscheme to ~/.vim/colors/print.vim, and changed all the lines like this: highlight Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20 to this: highlight clear Normal Then I set the syntax groups how I wanted them to be printed on the printer: highlight Comment term=italic cterm=italic gui=italic highlight Constant term=bold cterm=bold gui=bold ...etc... I then defined the following command and function in my vimrc: command! -nargs=* Hardcopy call DoMyPrint('') function DoMyPrint(args) let colorsave=g:colors_name color print exec 'hardcopy '.a:args exec 'color '.colorsave endfunction After this is complete, you can do (use uppercase 'H'): :Hardcopy > /tmp/out.ps or just :Hardcopy
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software