2010-06-04から1日間の記事一覧

try-catch の弊害

vim

Vim スクリプトでは try-catch が使えて非常に便利。 try echo 'start' throw 'error!' echo 'end' catch /error!/ echomsg 'error occurred.' endtry start error occurred.この try-catch、一般的な Vim のエラーが発生した場合も catch してくれる。 unle…