Thursday, August 14, 2014

Re: Multiple replacement through Dict or List way

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On August 14, 2014 12:15:54 PM GMT+03:00, Ni Va <nivaemail@gmail.com> wrote:
>Hi,
>
>
>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 = ....
>
>" replacement code line
>
>
>Thank you
>
>--
>--
>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 vim_use+unsubscribe@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Check out :h s\= and :h submatch().
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI1BAEBCgAfBQJT7HauGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvnNuEACPSnAG7DS1mZx0vVmFbQHFDUWWU34XcJYCpW6S2dSreXkuXd0jMDgb
ZKvlNCYrsHYDCDbgouDGHHDHj5sx9SFBFI9Fv2zvo5vsGI1Ki7qqo1ki08/qt04X
5zCCcOy4QyQuSY7FI+PvqojYFTg25Lj0ersDh+SHxPfjMfhdPih9pCQvJ4gSwwjR
3OssrvIGmBj0zCUk6d8txQZQakEyXLhlAGEUyiXSezWThW4xK+kT7eswtRrFBjb9
0owuL9UzBVY8M/xuXLMgyr3oOBI6ZTK0oPpwfm8tEf4JoQ+5JKaIxKI6fYtXOEEb
KtAvIWUQulr6Uk2mj/t2lDwTY7q7UfMNDw+gnqUNPWTcdQaUToB4j/8CPy9deSGA
7RKdukTsAFnuQu+hFF2CMFgSYJ7oLsJdILzibur+1WM9Pub3b4ajCxxyy8LNlLDH
UFeqeSrcBUi6m0hOgiF3nqZ1xVNcOLgTM1ufrJHdi+lckWIk+BQu/YYUOVMmrHN9
WoGK2tsTNa0Kk5ThLJVooPPWWUhS+j53zlcscLa/r+yx701hdpqqfOZrPb1oHdTs
YcdztZ13Wlk9DMDFPONDgjlcD4ds7fNzQEQuNFSqrpdH0KiuPMZYPFmuD/bmg4Xg
FDKbKHfTR1e3R99YjXh5scwgDPbr7DdgqgcgJPSNZDjuZF/GwkqTpQ==
=xOqV
-----END PGP SIGNATURE-----

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: