cafegale(LeafCage備忘録)

LeafCage備忘録(はてなダイアリー)と統一しました。

2014-10-16から1日間の記事一覧

try catch はreturn文の中では機能しない

vim

これはNG (catchできない) try return has_key(s:, 'disable_str2vimkeybind') ? a:str : lim#str2vimkeybind#str2vimkeybind(a:str) catch /E117:/ let s:disable_str2vimkeybind = 1 return a:str endtry これならOK (catchできる) try let ret = has_…