2015-03-26 18:35:04 +00:00
|
|
|
" to allow specific fonts for specific OSes
|
2018-03-23 12:47:18 +00:00
|
|
|
source ~/.config/nvim/glocal.vim
|
2015-03-26 18:35:04 +00:00
|
|
|
|
2017-06-25 14:40:35 +00:00
|
|
|
set lines=65
|
2017-06-02 21:00:22 +00:00
|
|
|
set columns=120
|
2015-04-01 21:20:05 +00:00
|
|
|
set guioptions-=r
|
|
|
|
set guioptions-=b
|
2015-11-16 18:22:55 +00:00
|
|
|
set guioptions-=T
|
|
|
|
set guioptions-=m
|
2018-10-12 21:12:07 +00:00
|
|
|
|
|
|
|
" from https://stackoverflow.com/a/51424640
|
|
|
|
let s:fontsize = 11
|
|
|
|
function! AdjustFontSize(amount)
|
|
|
|
let s:fontsize = s:fontsize+a:amount
|
|
|
|
:execute "GuiFont! DejaVu Sans Mono:h" . s:fontsize
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
|
|
|
|
noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
|
|
|
|
inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
|
|
|
|
inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a
|
|
|
|
|