From 6b9549a2688c9b138744859a1ebc2a70e545b345 Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Mon, 25 Nov 2024 10:21:02 +1100 Subject: [PATCH] Use tabs for zooming --- vim/vim.xdg.symlink/vimrc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/vim/vim.xdg.symlink/vimrc b/vim/vim.xdg.symlink/vimrc index 919f8e6..ba9dde4 100644 --- a/vim/vim.xdg.symlink/vimrc +++ b/vim/vim.xdg.symlink/vimrc @@ -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 z :call Zoom() +nnoremap z :tabe % " Git blame -nnoremap a :call Zoom():Git blame +nnoremap a :Git blame " Make directories in a filename if they don't exist.