From 5d4954f10e7c0698ec4c32f298c1bf30a2b90aab Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 24 May 2023 23:53:10 +0200 Subject: [PATCH] vim:aucmd: Do not start in insert mode in new file This is annoying when moving through the jumplist and jumping over a deleted file (which now is a 'new' file). --- .config/vim/vimrc.d/80-autocommands.vim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.config/vim/vimrc.d/80-autocommands.vim b/.config/vim/vimrc.d/80-autocommands.vim index 97ecc39..726be26 100644 --- a/.config/vim/vimrc.d/80-autocommands.vim +++ b/.config/vim/vimrc.d/80-autocommands.vim @@ -132,9 +132,3 @@ augroup stdin_not_modified au! au StdinReadPost * set nomodified augroup END - -" Start in insert mode when opening a new file that does not exist yet -augroup newfile_insert - au! - autocmd BufNewFile * startinsert -augroup END