Setting font size for Vim

July 19, 2008 @ 03:22 PM | posted by carmelyne

(last updated: 07.19.08)

Font size matters!


cd ~
vim .vimrc

then
add the line below:


set guifont=Monaco:h18

That's it.

[ Last updated: July 19, 2008 @ 03:23 PM ]


2 Responses to...
“Setting font size for Vim”

  1. Brian:

    If you need to show your editor to window to coworkers or frequently present code over a projector, a quick way to switch font sizes can be helpful.

    You might add a variant of the following mappings to your vimrc:

    map <leader>sf :set guifont=Lucida\ Console:h7<cr> map <leader>bf :set guifont=Lucida\ Console:h18<cr>

    If you have the default Leader of slash, \sf (mnemonic: small font) will shrink your text and \bf (mnemonic: big font) will embiggen your text.



    Posted:
  2. carmelyne:

    cool. thanks for the addition.



    Posted:

Sorry, comments are closed for this article.

Snippets of 06/24/07

Rails 'A'..'Z' Paginate

1
2
3
4
5
6
7
8
9
10
11
# Starts with 'A'..'Z' Paginate / model
def self.sort(sort)
  if sort
    find(:all, :conditions => ['name LIKE ?', "#{sort}%"])
  else
    find(:all, :order => 'name')
  end  
end

# index action / controller
@models = Model.sort(params[:sort]) 

Recent Posts...

RailsConf 2006
I heart devChix