Vim Tips Wiki
(Move categories to tip template)
Line 6: Line 6:
 
|created=November 20, 2005
 
|created=November 20, 2005
 
|complexity=basic
 
|complexity=basic
|author=Jan Christoph Ebersbach
+
|author=Jessica Kiefer
 
|version=6.0
 
|version=6.0
 
|rating=3/4
 
|rating=3/4

Revision as of 23:29, 11 September 2008

Tip 1053 Printable Monobook Previous Next

created November 20, 2005 · complexity basic · author Jessica Kiefer · 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