darkrc/gvimrc

26 lines
585 B
VimL
Raw Normal View History

2017-10-24 09:39:53 +00:00
set guioptions-=T
set guioptions-=m
set guioptions-=e
2017-10-24 09:39:53 +00:00
2017-12-19 14:46:02 +00:00
set cursorline " Highlight cursor line
2018-10-22 08:30:58 +00:00
if has("unix")
2018-10-24 07:49:11 +00:00
let g:font_temp="\\\\\\@<! \\zs\\d\\+"
2018-10-22 08:30:58 +00:00
elseif has("win32")
let g:font_temp=".*:h\\zs\\d\\+"
set linespace=0
end
let s:fontsize = match(&guifont, "")
function! SetFontSize(size)
if exists("g:font_temp")
let &guifont=substitute(&guifont, g:font_temp, a:size, "g")
end
endfun
2018-10-22 08:30:58 +00:00
2019-10-01 07:14:01 +00:00
" Override using ranger for picking files
nnoremap <leader><space> :e %:p:h<CR>
2018-10-22 08:30:58 +00:00
command! -nargs=1 SetFontSize call SetFontSize(<f-args>)
command! ResetFontSize call SetFontSize(s:fontsize)