It seems that I have found the way to search the web selected in vim, I will
release it in next release.
 

ypguo wrote:
> 
> Vimtim 394 introduce a tip to check the meaning of the word under the
> cursor,
> right click mouse, and choose Dic. Either IE or mozilla will be opened and
> dictionary service offered by www.m-w.com will be ready. 
> 
> nme <silent> PopUp.&Dic :sil! !start
> C:/Progra~1/mozilla.org/Mozilla/mozilla -nosplash "<cword> "<CR>
> http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=<cword>"<CR>;
> 
> It's a wonderful feature for browsing text. But it is a little difficult
> to use
> and only usable wn Windows. I expand this feature for easy fo use in
> almost
> every OS in the vim script
> "TxtBrowser"(http://www.vim.org/scripts/script.php?script_id=2899). Put
> the
> cursor to the words you want to search and use <Leader>f could open the
> web
> dictionary to lookup its meaning and use <Leader>s to call search engine,
> say
> google, to search the word under the cursor.
> 
> The default web dictionary is "http://www.google.cn/dictionary/"; and the
> default search engine is "http://www.google.com/";, you could custimize it:
> Open
> your prefered dictionary web page(or search engine) and lookup the word
> "text"
> and get the URL. Copy this(don't change any chars) to the following
> variable in your .vimrc, For example, the URL we got when looking up the
> word
> "text" is "http://dict.cn/text";, And the search engine URL for word "text"
> is
> "http://www.baidu.com/s?wd=text"; I set my prefered dictionay page as below
> in
> my .vimrc file:
> 
> In my ".vimrc"
> |
> |let TxtBrowser_Dict_Url='http://dict.cn/text'
> |let Txtbrowser_Search_Engine='http://www.baidu.com/s?wd=text'
> 
> In the next I want to enhance VimTip 933(Search the web for text selected
> in
> Vim) for easy to use and being available on all the OS in my script. Any
> clue?
> 

-- 
View this message in context: 
http://old.nabble.com/Internet-search-for-the-current-word-tp27515124p27556743.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to