How can one detect stdin input in .vimrc?
I have the following command in my ~/.vimrc:
autocmd BufWinEnter * silent loadview
to open a file with a cursor at the last line position. However, if I use vim on stdin, I get the following error message:
Error detected while processing BufWinEnter Autocommands for "*":
E32: No file name
Press ENTER or type command to continue
How can one detect that vim is used on stdin in .vimrc to suppress execution of the command in such cases?
Thank you for your help!