-
Notifications
You must be signed in to change notification settings - Fork 0
/
ginit.vim
34 lines (29 loc) · 968 Bytes
/
ginit.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Settings for neovim-qt
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set format of tab name
set guitablabel=\[%N\]\ %t\ %M
" Disable GUI Tabline
if exists(':GuiTabline')
GuiTabline 0
endif
" Disable GUI Popupmenu
if exists(':GuiPopupmenu')
GuiPopupmenu 0
endif
" Enable GUI ScrollBar
if exists(':GuiScrollBar')
GuiScrollBar 0
endif
let s:fontsize = 18
" set guifont=JetBrainsMono\ NF:h18
set guifont=Iosevka:h18
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
" :execute "GuiFont! JetBrainsMono\ NF:h" . s:fontsize
:execute "GuiFont! Iosevka: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