Improve vim troubleshooting

Log should not write to `sys.stderr` because this action is transformed into exception by `:try`.