物置き

Let's Boostをリファレンスとして活用する

某勉強会があっという間に定員になってしまうほど大人気のBoostライブラリですが、
昨日のエントリのCusorOverDictionaryで、素敵なBoost紹介サイトLet's Boost
Vim上でのBoostリファレンスとして活用するような使い方ができます。

設定

call cursoroverdictionary#add("boost", 'http://www.kmonos.net/alang/boost/classes/{word}.html', "utf-8", "utf-8")
call cursoroverdictionary#set_trim_pattern("boost", '</head><body>', '<!-- x\{-1,} -->')
command! -nargs=* LetsBoost CODSearchEx boost <args>

.vimrcに上のように書いとくと「:LetsBoost 」で、
Let's Boostのサイトの内容をVim上で表示することができます。


同様のことは、Wwwsearchを使ってもお手軽にできます。
Wwwsearchの場合はブラウザで表示することができるので、ブラウザを利用できる環境であれば
むしろこっちのほうが便利かもしれません。

" wwwsearchでLet's Boost
call wwwsearch#add("boost" ,"http://www.kmonos.net/alang/boost/classes/{keyword}.html")
command! -nargs=1 LetsBoost call wwwsearch#search(<q-args>, "boost")