Use tabs for zooming

This commit is contained in:
Max Bucknell 2024-11-25 10:21:02 +11:00
parent 8d2972746e
commit 6b9549a268
No known key found for this signature in database

View file

@ -187,21 +187,10 @@ augroup END
" Focus mode
function! Zoom()
if exists('g:is_zoomed')
unlet g:is_zoomed
execute "wincmd ="
else
let g:is_zoomed = 'true'
execute "wincmd _"
execute "wincmd \|"
endif
endfunc
nnoremap <leader>z :call Zoom()<cr>
nnoremap <leader>z :tabe %<cr>
" Git blame
nnoremap <leader>a :call Zoom()<cr>:Git blame<cr>
nnoremap <leader>a :Git blame<cr>
" Make directories in a filename if they don't exist.