Well, after several hours of trying, I finally found out.
I added quotes to the bufhidden setting and file name. It should be:
autocmd BufRead /private/var/folders/fg/gv_*/T/* set bufhidden=delete | startinsert!
It does not work with extra quotes:
- "delete" - invalid parameter value (see
:he bufhidden ) - quotes around the file name prevent wildcards (glob characters) from matching (see doc )
If anyone else uses QuickCursor, you can fine tune it:
autocmd BufWinEnter /private/var/folders/fg/gv_*/T/* set bufhidden=delete | exe "normal G$" | startinsert!
Thus, it changes to insert mode at the end of the text
source share