About: Change font size quickly   Sponge Permalink

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

The following script defines two commands, :LargerFont and :SmallerFont, to allow quick adjustments to the font size used in the gtk2 gui. Change minfontsize and maxfontsize to suit your needs. See below for alternative solutions. To use this script, put the following code into ~/.vim/plugin/gtk2fontsize.vim or in your vimrc.

AttributesValues
rdfs:label
  • Change font size quickly
rdfs:comment
  • The following script defines two commands, :LargerFont and :SmallerFont, to allow quick adjustments to the font size used in the gtk2 gui. Change minfontsize and maxfontsize to suit your needs. See below for alternative solutions. To use this script, put the following code into ~/.vim/plugin/gtk2fontsize.vim or in your vimrc.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 759(xsd:integer)
Text
  • fontsize
  • guifont++.vim
  • quickfonts.vim
Author
  • Wouter Bolsterlee
Complexity
  • intermediate
Created
  • 2004(xsd:integer)
ID
  • 202(xsd:integer)
  • 593(xsd:integer)
  • 760(xsd:integer)
  • 2809(xsd:integer)
NEXT
  • 761(xsd:integer)
Rating
  • 5(xsd:integer)
abstract
  • The following script defines two commands, :LargerFont and :SmallerFont, to allow quick adjustments to the font size used in the gtk2 gui. Change minfontsize and maxfontsize to suit your needs. See below for alternative solutions. To use this script, put the following code into ~/.vim/plugin/gtk2fontsize.vim or in your vimrc. let s:pattern = '^\(.* \)\([1-9][0-9]*\)$' let s:minfontsize = 6 let s:maxfontsize = 16 function! AdjustFontSize(amount) if has("gui_gtk2") && has("gui_running") let fontname = substitute(&guifont, s:pattern, '\1', '') let cursize = substitute(&guifont, s:pattern, '\2', '') let newsize = cursize + a:amount if (newsize >= s:minfontsize) && (newsize <= s:maxfontsize) let newfont = fontname . newsize let &guifont = newfont endif else echoerr "You need to run the GTK2 version of Vim to use this function." endif endfunction function! LargerFont() call AdjustFontSize(1) endfunction command! LargerFont call LargerFont() function! SmallerFont() call AdjustFontSize(-1) endfunction command! SmallerFont call SmallerFont()
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