]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
nvim: import autocmds from LazyVim
[dotfiles.git] / vim / vimrc
index 5f0dea313f1de9c5b23c7a44790b004185c5690c..d92ec16041e94bf344717a7c951de10c2cc6849c 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -376,9 +376,9 @@ set sessionoptions+=unix,slash  " damn windows and it's silly ways
 
 " autocmds {{{1
 " Resize splits when the window is resized {{{2
-augroup resize
+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
@@ -395,7 +395,7 @@ augroup ft_stdin
 augroup END
 
 " Jump to last known cursor position {{{2
-augroup cursor_pos
+augroup last_loc
     au!
     " blacklist certain filetype
     let blacklist = ['gitcommit']