updates
This commit is contained in:
40
ginit.gtk.vim
Normal file
40
ginit.gtk.vim
Normal file
@@ -0,0 +1,40 @@
|
||||
""
|
||||
"" Misc.
|
||||
""
|
||||
set termguicolors
|
||||
set background=light
|
||||
hi ColorColumn guibg=#deddda
|
||||
|
||||
call rpcnotify(1, 'Gui', 'Option', 'Popupmenu', 0)
|
||||
call rpcnotify(1, 'Gui', 'Option', 'Tabline', 0)
|
||||
call rpcnotify(1, 'Gui', 'Command', 'SetCursorBlink', '0')
|
||||
""
|
||||
"" Font Setup
|
||||
""
|
||||
|
||||
"" parameters
|
||||
let s:defaultfontsize = 10
|
||||
let s:fontname = "Source Code Pro"
|
||||
|
||||
"" set default font
|
||||
:execute "Guifont " . s:fontname . ":h" . s:defaultfontsize
|
||||
|
||||
"" increase/decrease font size function
|
||||
let s:fontsize = s:defaultfontsize
|
||||
function! AdjustFontSize(amount)
|
||||
let s:fontsize = s:fontsize+a:amount
|
||||
:execute "Guifont " . s:fontname . ":h" . s:fontsize
|
||||
endfunction
|
||||
|
||||
"" reset font size
|
||||
function! ResetFontSize()
|
||||
:execute "Guifont " . s:fontname . ":h" . s:defaultfontsize
|
||||
endfunction
|
||||
|
||||
"" font size keybindings
|
||||
noremap <C-S-+> :call AdjustFontSize(1)<CR>
|
||||
noremap <C-S-_> :call AdjustFontSize(-1)<CR>
|
||||
noremap <C-S-)> :call ResetFontSize()<CR>
|
||||
inoremap <C-S-+> <Esc>:call AdjustFontSize(1)<CR>a
|
||||
inoremap <C-S-_> <Esc>:call AdjustFontSize(-1)<CR>a
|
||||
inoremap <C-S-)> <Esc>:call ResetFontSize()<CR>a
|
||||
Reference in New Issue
Block a user