This tip is very similar to the following:
These tips need to be merged – see the merge guidelines.
created January 30, 2003 · complexity basic · author benrich · version 5.7
Sometimes, its nice to be able to quickly jump to a smaller font to see more of the file you're editing at once, and jump back again to make the text more readable. I use these mapping:
:map <F9> :set guifont=Lucida_Console:h9:cANSI<CR> :map <F11> :set guifont=Lucida_Console:h11:cANSI<CR> :map <S-f9> :set guifont=Courier_New:h9:cANSI<CR> :map <S-f11> :set guifont=Courier_New:h11:cANSI<CR>
9 and 11 are my mnemonics for the font size. F10 wouldn't work for me because it activates the menu. Of course, this only works in gvim.