Hacker News new | ask | show | jobs
by alexvitkov 1025 days ago
you can use the following script to quit vim, it kills random processes until vim dies:

  while pgrep vim; do
      ps axuw | awk '{print $2}' | grep -v PID | shuf -n 1 | sudo kill -9
  done