.config/nvim/ginit.vim

Sat, 25 Feb 2023 13:01:43 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 25 Feb 2023 13:01:43 -0500
changeset 1050
6fb014427493
parent 1042
0d793459267d
permissions
-rw-r--r--

Make autoread more reliable

set number
set guifont=DejaVu\ Sans\ Mono:h10
set linespace=0

if exists("g:fvim_loaded")
  " sizes are inconsistent... doesn't autoadjust for dpi? vimresize event not
  " fired?
  if g:fvim_os == "windows"
    set guifont=DejaVu\ Sans\ Mono:h13
    FVimFontLineHeight "+1.0"
  elseif g:fvim_render_scale > 1.0
    set guifont=DejaVu\ Sans\ Mono:h11
  else
    set guifont=DejaVu\ Sans\ Mono:h10
  endif

  " These take a ton of scroll events to trigger, it's easier with the touchpad?
  nnoremap <silent> <C-ScrollWheelUp> :set guifont=+<CR>
  nnoremap <silent> <C-ScrollWheelDown> :set guifont=-<CR>

  nnoremap <A-CR> :FVimToggleFullScreen<CR>
endif

mercurial