Last active
June 8, 2016 07:14
-
-
Save Stolas/ab65064ac8facd133b8eba6401daec87 to your computer and use it in GitHub Desktop.
Easy Switch Fonts - Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:font = 1 | |
function! ToggleFont() | |
if g:font > 0 | |
let g:font = 0 | |
set guifont=GohuFont\ 10 | |
else | |
let g:font = 1 | |
set guifont=Courier\ New\ Bold\ 14 | |
endif | |
endfunction | |
command! ToggleFont call ToggleFont() | |
map <F4> :ToggleFont<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment