Put your cursor on a word then do...
:r http://services.aonaware.com/DictService/DictService.asmx/Define?word=<cword> | %s/<\_.\{-}>//g | %s/^M//g
You'll want to do a little bit more sophisticated post-processing to remove the XML. :)
I was just fooling around with this at first. It started as an exercise for myself to see how quickly I could come up with something.1 But it actually, generally works and it demonstrates a couple less familiar features (netrw
and <cword>
) so I figured I'd post. A little better filtering and you could have something. Here's a sample using exactly the command above...
playful
playful
gcide
The Collaborative International Dictionary of English v.0.44
Playful \Play"ful\, a.
Sportive; gamboling; frolicsome; indulging a sportive fancy;
humorous; merry; as, a playful child; a playful writer. --
{Play"ful*ly}, adv. -- {Play"ful*ness}, n.
[1913 Webster]
playful
wn
WordNet (r) 2.0
playful
adj : full of fun and high spirits; "playful children sjust let
loose from school" [ant: {unplayful}]
1. 15-20 minutes, most of which was spent searching for a free, simple, usable API.