title: How to repeatedly add text on both sides of a word in vim?
body: <p>I have a bunch of local variable references in a Python script that I want to pull from a dictionary instead. So, I need to essentially change <code>foo</code>, <code>bar</code>, and others into <code>env['foo']</code>, <code>env['bar']</code> and so on. Do I need to write a regular expression and match each variable name to transform, or is there a more direct approach that I could just repeat with the <code>.</code> command?</p>