Initial commit
This commit is contained in:
22
ginit.vim
Normal file
22
ginit.vim
Normal file
@@ -0,0 +1,22 @@
|
||||
let s:fontsize = 10
|
||||
function! AdjustFontSize(amount)
|
||||
let s:fontsize = s:fontsize+a:amount
|
||||
:execute "GuiFont! Source\ Code\ Pro: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
|
||||
|
||||
" In normal mode, pressing numpad's+ increases the font
|
||||
noremap <kPlus> :call AdjustFontSize(1)<CR>
|
||||
noremap <kMinus> :call AdjustFontSize(-1)<CR>
|
||||
|
||||
" In insert mode, pressing ctrl + numpad's+ increases the font
|
||||
inoremap <C-kPlus> <Esc>:call AdjustFontSize(1)<CR>a
|
||||
inoremap <C-kMinus> <Esc>:call AdjustFontSize(-1)<CR>a
|
||||
|
||||
GuiFont! Source\ Code\ Pro:h10
|
||||
|
||||
set mouse=a
|
||||
Reference in New Issue
Block a user