Vim Tips Wiki
 
(Remove html character entities)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=1053
 
|id=1053
  +
|previous=1052
|title=Lookup word in dict
 
  +
|next=1054
|created=November 20, 2005 15:14
+
|created=November 20, 2005
 
|complexity=basic
 
|complexity=basic
 
|author=Jan Christoph Ebersbach
 
|author=Jan Christoph Ebersbach
 
|version=6.0
 
|version=6.0
 
|rating=3/4
 
|rating=3/4
  +
|category1=
|text=
 
  +
|category2=
Hi,
 
 
}}
 
Put this in your vimrc to lookup the inner or selected word in dict. Please adjust latin1 to your encoding.
   
  +
<pre>
 
nnoremap ,l mayiw`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"<CR>
 
vnoremap ,l may`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"<CR>
  +
</pre>
   
 
==Comments==
 
put this in your vimrc to lookup the inner or selected word in dict. Please adjust latin1 to your encoding.
 
 
 
 
nnoremap ,l mayiw`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"&lt;CR&gt;
 
 
vnoremap ,l may`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"&lt;CR&gt;
 
 
 
}}
 
 
== Comments ==
 
<!-- parsed by vimtips.py in 0.518195 seconds-->
 

Latest revision as of 23:49, 29 September 2008

Tip 1053 Printable Monobook Previous Next

created November 20, 2005 · complexity basic · author Jan Christoph Ebersbach · version 6.0


Put this in your vimrc to lookup the inner or selected word in dict. Please adjust latin1 to your encoding.

nnoremap ,l mayiw`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"<CR>
vnoremap ,l may`a:exe "!dict -P - $(echo " . @" . "\| recode latin1..utf-8)"<CR>

Comments[]