]> git.rmz.io Git - dotfiles.git/commitdiff
vim: resize splits in all tabs when resizing vim
authorSamir Benmendil <me@rmz.io>
Mon, 10 Apr 2023 22:47:16 +0000 (23:47 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:18 +0000 (17:36 +0000)
vim/vimrc

index c5fca7744f8383a6594de26362d35544c207ab50..d92ec16041e94bf344717a7c951de10c2cc6849c 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -378,7 +378,7 @@ set sessionoptions+=unix,slash  " damn windows and it's silly ways
 " Resize splits when the window is resized {{{2
 augroup resize_splits
     au!
 " Resize splits when the window is resized {{{2
 augroup resize_splits
     au!
-    autocmd VimResized * :wincmd =
+    autocmd VimResized * :tabdo wincmd =
 augroup END
 
 " Only show cursorline in the current window and in normal mode {{{2
 augroup END
 
 " Only show cursorline in the current window and in normal mode {{{2