Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! IncrementFontSize()
- exe "set guifont=".join(split(&guifont)[0:-2], '\ ').'\ '.(split(&guifont)[-1]+1)
- endfunction
- function! DecrementFontSize()
- exe "set guifont=".join(split(&guifont)[0:-2], '\ ').'\ '.(split(&guifont)[-1]-1)
- endfunction
- nnoremap <C-Up> :call IncrementFontSize()<CR>
- nnoremap <C-Down> :call DecrementFontSize()<CR>
Advertisement
Add Comment
Please, Sign In to add comment