Use tabs for zooming
This commit is contained in:
parent
8d2972746e
commit
6b9549a268
1 changed files with 2 additions and 13 deletions
|
@ -187,21 +187,10 @@ augroup END
|
||||||
|
|
||||||
" Focus mode
|
" Focus mode
|
||||||
|
|
||||||
function! Zoom()
|
nnoremap <leader>z :tabe %<cr>
|
||||||
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>
|
|
||||||
|
|
||||||
" Git blame
|
" 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.
|
" Make directories in a filename if they don't exist.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue