Google Suggest APIで電卓もどき - ほとんど欄外をRubyからVimScriptに移植した風なもの。 scriptencoding utf-8 function! GCalc(...) let word = a:1 let res = webapi#http#get('http://www.google.co.jp/complete/search?output=toolbar&q='.webapi#http#escape(word)).content if match(res, 'calculator_suggestion') == -1 echohl ErrorMsg | echo '答えが出せませんでした' | echohl None return endif let dom = webapi#xml#parse(res) echo dom.find('calcula