Hacker News new | past | comments | ask | show | jobs | submit login

Why not check for file existance, instead of try-catch:

  if filereadable(expand("~/.vimlocal"))
      source ~/.vimlocal
  endif



I've no strong objection to that - it's racy but not in any way that probably matters. Otherwise, it's mostly just a question of forgiveness vs permission...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: