sponsor Vim development Vim logo Vim Book Ad

plugin/fonts.vim : Multi OS Font Plugin

 script karma  Rating 84/29, Downloaded by 2515    Comments, bugs, improvements  Vim wiki

created by
Martin Krischik
 
script type
utility
 
description
This plug-in set's the font used depending on the operating system / windowing system used. It also contains a smaller and larger font to zoom in and out. It is very helpful if you use GVim with more then one OS, display resolutions etc. pp.

You can easily expand the plugin for more OS's or fonts.

Reports errors to: http://code.google.com/p/vim-scripts/issues/list
Discuss improvements on: http://groups.google.com/group/vim_scripts
For Support see: http://code.google.com/p/vim-scripts/wiki/MultiOSFontPlugin
 
install details
Copy the file into your plug-in directory and edit to reflect fonts installed on your system(s).

If you don't know the fonts available on your system you have two Ways open:

1) The last "Edit" menu entry in GVim is "Choose Font". Then it's easy: you choose a nice font and then use ":set guifont" to find out it's internal name.

2) The "Choose Font" Menu is available - AFAIK that happens with older XServer set-ups (like Motif)  in which case you can use the xfontsel program  to find out which fonts are available and what names they have.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
fonts.vim 1.4 2006-11-18 7.0 Martin Krischik Now with Sun Solaris support. But mind you: All font settings for XServer platforms depend on the Client and Server used - you might hat to fine tune the script for your environment.
fonts.vim 1.3 2006-05-10 7.0 Martin Krischik Minor improvements
fonts.vim 1.2 2006-02-23 6.0 Martin Krischik This version will resize the window as well when changing fonts. Mapping and menus have been improved to support a function key as g:mapleader.
fonts.vim 1.1 2005-10-13 6.0 Martin Krischik This version has more features - like using smaller fonts for vimdiff or an alternative fontset for utf8 encoded files.
fonts.vim 1.0 2005-08-26 6.0 Martin Krischik Initial upload
ip used for rating: 54.224.225.86

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo