I mostly use Vim to edit configuration files so I understand why it starts in normal mode. But I also use vi mode for the REPL (bash, zsh, ipython, etc.) and the shell always starts in insert mode (this makes sense because you just want to start typing a command).
For the same reason, when I open a new empty file vim foo.txt, I want to be in insert mode. So I'm looking for a vimrc function that checks if the file is empty and then put me in insert mode.
In this way I can be consistent across the terminal. When there aren't text objects I know I'm in insert mode.
set background=dark) in the.vimrcit opens the new file in insert mode with-- INSERT --in the first line. – isar Sep 08 '17 at 15:54autocmd BufNewFile * startinsertandset background=darkin my.vimrcif I open a new filevim foo.txt, the text-- INSERT --will appear in the first line, so I had to removeset background=darkfrom my.vimrc. – isar Sep 08 '17 at 16:19backgroundoption shouldn't have an impact on that, have a look at this really good question to debug that :) – statox Sep 08 '17 at 19:01Escand thenCtrl+l. So it is actually on the screen. If I start typing it also goes away progressively and get overridden from the characters I insert. Thank you – isar Sep 09 '17 at 06:49termor termcap settings. You should open another question for this issue. – Random832 Sep 09 '17 at 14:39