Every once in awhile I make a mistake at the command line, and use vim in a subshell.
This of course locks up that terminal window, and outputs a bunch of errors, with the main error being
Vim: Warning: Output not to a terminal
Is there a way for me to configure vim so it automatically dies when this happens, and doesn't hang my terminal?
I know I could probably figure out the process id of this vim instance, and kill it, but I would like a better solution if possible, as I tend to run lots of different vim instances in different tmux panes/windows. Thanks!