On 2014-08-14 01:15, Ni Va wrote:
> I would like to proceed to substitute several words foos by bars
> List in a buffer using a Dict.
> 
> Can I code the replacement in one code line ?
> 
> let mydict = ....

Sounds like you'd do something like

 :%s/\<\w\+\>/\=get(mydict, submatch(0), submatch(0))/g

-tim



-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to