Most of them were already in vimrc. Matching augroup names from LazyVim
is done to somewhat future proof the autocommands.
--- /dev/null
+return {
+ {
+ "LazyVim/LazyVim",
+ opts = {
+ defaults = {
+ autocmds = false,
+ },
+ },
+ },
+}
" autocmds {{{1
" Resize splits when the window is resized {{{2
-augroup resize
+augroup resize_splits
au!
autocmd VimResized * :wincmd =
augroup END
augroup END
" Jump to last known cursor position {{{2
-augroup cursor_pos
+augroup last_loc
au!
" blacklist certain filetype
let blacklist = ['gitcommit']